Advertisement

Another Newby question...

Started by December 15, 2001 03:54 PM
10 comments, last by Kiroke 23 years, 2 months ago
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!
basically the dimensions must be 2^n. U could have 32x64 or 32x128 or 32x32. It doesn''t have to be square, just a power of 2.

This topic is closed to new replies.

Advertisement