Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    Using textures that aren't 2-powered
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<mover>
Posted
I need to use textures in a VET project that may be sized in any way (sides my have lengths of a power of 2 or not). But when VET loads the texture (with SDK_JPGAttach based funtion), it stretches the textures to have 2-powered length sides, simply adding black pixels to fill the gap. If the textured polygon needs repeated texture in the direction the texture is stretched by VET in, the black pixeled part is rendered black (what else).
Is there any way to avoid this problem (other than sizing the textures before they are loaded into the VET app)?
My only idea would be to load the textures into memory (as some image), stretch it manually (implementing a strech alghorythm or e.g. using D3D surfaces) and recompute all texure coordinates to unstretch (how is it called in english - I'm sure I would know it if I wouldn't have to write it here ...) the texture onto the polygon. But that doesn't seem to be a really simple task, so maybe there is another solution.

Thanks to all repliers.
 
Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  SDK Support    Using textures that aren't 2-powered