The problem is probably in the texture loading code. The dimensions of the bitmap must indeed be a power of 2. If you have an old voodoo card this restriction won''t be noticed because since it only supports 256x256 textures they always get resized.
if you use mipmapping and the gluBuildBitmaps() function (hope it''s spelled correctly), the scaling is made automatically so you don''t have to worry about it.
There are no restritions when using rectangular quads and square textures and vice-verse. The texture always get scaled to whatever coordinates you pass to gl.
You can try nate robins''s tutorials to answer your questions about texture coordinates in
http://www.xmission.com/~nate/tutors.html
hope it helps!
Popular Topics
Advertisement
Recommended Tutorials
Advertisement