Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Blending/masking

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2000
    Posts
    5

    Blending/masking

    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

  2. #2
    Intern Contributor
    Join Date
    Jun 2000
    Location
    Rostov-on-Don,Russia
    Posts
    50

    Re: Blending/masking

    This is not the discussion for this - use Codeing: beginners instead
    The short answer to your question is alpha testing. See ALPHA_TEST state and AlphaFunc function.
    Aristarkh Zagorodnikov aka onyXMaster
    ICQ 36987938

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •