PDA

View Full Version : openGL alpha blending with black



openGLJohn
07-24-2002, 04:47 AM
I am alpha blending and having success with white or any primary colors, but when I start to put some gray or black, it becomes more transparent even though the alpha value is all the way up. I need to know which alpha blanding function I should use to make it so that I can put all colors in there and have only the alpha value determine whether it is opaque or transparent. Thanks.

Deiussum
07-24-2002, 05:16 AM
Try glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

Leyder Dylan
07-26-2002, 07:11 AM
On my site, I've a example for loading a TGA with a mask.
http://ibelgique.ifrance.com/Slug-Production/