Define a key color

Started by
2 comments, last by pinard83 22 years, 1 month ago
How define a key color? Is there any other possibility to use mask? Thanks Pinard :"The warrior" !
Pinard :"The warrior" !
Advertisement
Wherever your colorkey appears give that pixel an alpha value of 0, then glEnable(GL_ALPHA_TEST); and glAlphaFunc(GL_GREATER, 0); or glAlphaFunc(GL_GREATER, GL_ZERO); What that does is NOT draw any pixel with an alpha of 0, which your colorkey has, and thats that.

------------
- outRider -
Your answer is not good. I want to make a mask with a texture, so I want to define a color key like you can do with Direct Draw.

Pinard :"The warrior" !
Pinard :"The warrior" !
Color keys are not accelerated in 3D. Use alpha testing (or blending) like he told you to. For examples try searching the forums (this comes up a lot).

This topic is closed to new replies.

Advertisement