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 3 of 3

Thread: write stencil buffer

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Posts
    2

    write stencil buffer

    I want to write the stencil buffer in a atactic shape. I can't figure out the shape before hand. the only way by which I can figure out the shape is the alpha test. Can I write the stencil buffer by the alpha value but not the polygon that I draw?
    Thanks.

  2. #2

    Re: write stencil buffer

    I'm no expert on the stencil buffer, but I think in your case you could use the alpha test to filter what fragments are drawn to the stencil buffer. Anything which fails the alpha test should not affect the stencil when that test is activated.
    --------
    "A Microsoft Certified Systems Engineer is to computing what a McDonalds Certified Food Specialist is to fine cuisine"
    --------

  3. #3
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: write stencil buffer

    sounds like u dont need stencil at all, perhaps blending using src_alpha or dst_alpha is what u want

Posting Permissions

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