partial transparency
I''ve got lesson 8 to work now, but I was wondering how to do partial transparency of bitmaps. I have a bitmap of a 2d character enclosed in a white box, and I''d like white to be a transparent color, but the rest of the bitmap opaque. Can you do this in OpenGl? If so, does anyone have sample code for it? Thanks!
Use the alpha channel.
Death of one is a tragedy, death of a million is just a statistic.
Death of one is a tragedy, death of a million is just a statistic.

If at first you don't succeed, redefine success.
It would be better to load a .TGA image instead of a bitmap.. The TGA format supports the alpha channel.
I got an on-topic question then... if you load the .TGA file into a memory DC and select the bitmap into it, you can bitblit it to hell and back and have the transparency??
I fseek, therefore I fam.
I fseek, therefore I fam.
I'll give you a beating like Rodney King who deserved it!=====================================Any and all ideas, theories, and text c2004,c2009 BrainDead Software. All Rights Reserved.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement