PDA

View Full Version : NeHe Tutorial 6 bitmap problem



pkirk
12-16-2003, 11:04 AM
Hi all,

I'm learning OpenGL from the NEHe tutorials. #6 is about mapping a bmp onto a quad. works perfectly with his bmp. But my bmp that I made using Paint to convert from a jpg simply doesn't work though the C code does open the file. I just get a white square. Can anyone suggest what migh cause this kind of problem.

Thanks.

Rog
12-16-2003, 11:10 AM
Are the width and height of your bitmap both powers of two?

(they should be)....

pkirk
12-16-2003, 12:05 PM
Originally posted by Rog:
Are the width and height of your bitmap both powers of two?

(they should be)....



No - it was 96 by 96 and changing it to 64 x 64 fixed it. Thanks for answering what must have seemed a basic question.