Not all bitmaps are equal
I''ve run across an interesting problem while programming a small application to test some ideas I had. I was relying heavily on code from Nehe tutorial 6, especially the part for loading BMP files. When I incorporated it into my own application and tried to load my own BMP it ceased to work correctly. When I tried to texture a square with the file it just came up with a blank square. So instead I tried to load the BMP that came with lesson06, nehe.bmp, and sure enough it loaded it without any problem!
How come all the bitmaps I made with the GIMP don''t load but the ones from NeHe do? How should I be making my bitmaps differently?
Thanks for you help,
CDG
I had the same problem. Are you using the Linux code? The linux code actually uses 3 textures, and only the mipmapped texture worked for my bitmaps.
Actually it is the same in the VC++ lesson 7 code. Try pressing the ''F'' key while you run your program. On mine, only the 3rd one worked, it is the mipmapped texture.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement