Results 1 to 5 of 5

Thread: Stencil Buffer

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2002
    Location
    Tehran, Iran
    Posts
    8

    Stencil Buffer

    Hello
    Im a new Beginner in OpenGL. I wanna know what is Stencil Buffer and what can we do by use it. I read little about it on internet, but couldnt figure out Its capability.
    Is there a full tutorial with sample codes on internet that can help me.

    thanks alot

  2. #2
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    102

    Re: Stencil Buffer

    The Stencil buffer is an extra buffer that can restrict pixels from being drawn.

    But, I have a Voodoo3 so I wouldnt know.

  3. #3
    Member Contributor
    Join Date
    Jul 2002
    Location
    Seri Kembangan, Selangor, Malaysia
    Posts
    92

    Re: Stencil Buffer

    normally.. stencil buffer was used in shadow mapping .. try to save the modelview matrix to the stencil buffer and render as shadow..

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    25

    Re: Stencil Buffer

    I've got a question. Is the scencil buffer slow? For example if I wanted to make some shadows is the scencil buffer the best way to do it?

  5. #5
    Senior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    London, England
    Posts
    160

    Re: Stencil Buffer

    If you are using anything more than a voodoo (TNT or above), with a 24 bit depth buffer, stencil is just about free.
    Stencil shadows (shadow volumes, NOT shadow maps) are a good way to do shadows. There are plenty of discussions here on shadow volumes vs shadow maps.

Similar Threads

  1. Replies: 1
    Last Post: 09-11-2013, 11:35 AM
  2. copy app generated stencil data to stencil buffer
    By guilder in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-23-2010, 06:46 PM
  3. Coping from FBO's stencil to main stencil buffer ?
    By gregory_x in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 08-30-2010, 01:09 AM
  4. Depth buffer and stencil buffer / Alpha test
    By greg2 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-05-2004, 01:50 AM
  5. How to clear stencil buffer after stencil test?
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-14-2003, 09:04 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