Advertisement

partial transparency

Started by July 16, 2003 11:54 AM
4 comments, last by cixelsyd 21 years, 7 months ago
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!
Look at NeHe tutorial 20.
Advertisement
Use the alpha channel.

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.
Alpha channel or masking.
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'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