NeHe Tutorial 6 bitmap problem

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.

Are the width and height of your bitmap both powers of two?

(they should be)…

Originally posted by Rog:
[i]Are the width and height of your bitmap both powers of two?

(they should be)…

[/i]

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.