Advertisement

Not all bitmaps are equal

Started by July 16, 2003 11:35 AM
3 comments, last by cdgweb 21 years, 7 months ago
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.
Advertisement
are your bitmaps width and height powers of 2?
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.
Making a mipmap fixed the problem. Thanks for all your help!

cdgweb

This topic is closed to new replies.

Advertisement