Results 1 to 3 of 3

Thread: stencil buffer question

  1. #1
    Member Contributor
    Join Date
    Oct 2002
    Posts
    55

    stencil buffer question

    Hello,

    i have a few questions about the stencil buffer and his attitude.

    I have delete my stencil buffer with 0 and a stencil mask 0xff. Now i decrement some values. Now what happens?
    is the value there 255,-1, 1 or something else?

    i have a problem with this in combination with shadow volumes.

    thank you for your replys

    helda

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: stencil buffer question

    It depends on what function you use to decrement the index. With GL_DECR, decreasing zero results in zero. With GL_DECR_WRAP, decreasing zero results in the maximum representable value.

    Read the specification for more info.

  3. #3
    Member Contributor
    Join Date
    Oct 2002
    Posts
    55

    Re: stencil buffer question

    thank you for the answer, i think this will help me!

Similar Threads

  1. Stencil buffer question
    By PollyPocket4eva in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-19-2011, 03:30 PM
  2. stencil buffer question
    By m4ch0dude in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 04-28-2004, 09:15 AM
  3. A stencil buffer question
    By hgxz in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-08-2004, 12:23 AM
  4. Stencil buffer question
    By rantrod in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-11-2001, 07:39 PM
  5. Stencil buffer question
    By Kilam Malik in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 01-26-2001, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean