Bitmap problem
I was toying around with the snowstorm program from chap15 of the glbook. I tried to change the snowflake texture to load some other bitmap, but it just ends up looking like garble. I''m using Adobe Photoshop to edit the bitmap, and I made sure to save is as 24-bit, but I can''t get it to load correctly. I have some other particle-type bitmaps around from other programs, so I tried those too. Some of them load fine, some of them load as garble. I can''t figure out what''s wrong with these bitmaps and how to make one that I can use with the bitmap.h file there.
Thanks,
Cheez
Cheez------------------------------If you were supposed to understand it, we wouldn''t call it code
Are you talking about a windows *.bmp file? Or just a ''bitmap'' file (lol)?
It sounds like the problem could be due to the lack of an alpha channel (32 bit texture). Depends on exactly what you''re trying to load.
It sounds like the problem could be due to the lack of an alpha channel (32 bit texture). Depends on exactly what you''re trying to load.
I love this problem. The example in the book specifically uses Windows BMP files. In order to get a better understanding of just what''s going on, check out the NeHe tutorial on blending (7, 8, or 9?).
{NOTE: For people who say, "Bah, you''re telling him to look for it on his own because you don''t know!", I''m not. I hold self-education in high esteem, and if he has any more problems, he''s free to ask more specific questions. Just a disclaimer, because I have been flamed for that.}
Later,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[if you have a link proposal, email me.]
{NOTE: For people who say, "Bah, you''re telling him to look for it on his own because you don''t know!", I''m not. I hold self-education in high esteem, and if he has any more problems, he''s free to ask more specific questions. Just a disclaimer, because I have been flamed for that.}
Later,
ZE.
//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links
[if you have a link proposal, email me.]
[twitter]warrenm[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement