PDA

View Full Version : Blending/masking



asdiel
10-27-2000, 11:44 AM
I have a map and I'm trying to put some data on top of it, I'm building a texture and in those points where there is no data I make alpha = 0. I also need to control the data transparency. So I do a quad after drawing my background and I place my texture on it, but I'm getting the color of the quad thru the "holes" in the data, while the holes should be completely transparent.
How can I do it completely transparent on the "holes" and transparent on the data?..
Thanks

onyXMaster
10-27-2000, 11:32 PM
This is not the discussion for this - use Codeing: beginners instead http://www.opengl.org/discussion_boards/ubb/smile.gif
The short answer to your question is alpha testing. See ALPHA_TEST state and AlphaFunc function.