Results 1 to 2 of 2

Thread: color on the stencil buffer

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    san jose, ca 95134
    Posts
    2

    color on the stencil buffer

    I am working on the application by using stencil buffer. I drew the big solid sphere
    and used glStencilOp (GL_KEEP, GL_KEEP, GL_KEEP).
    I created the small solid sphere by using stencil buffer glStencilOp (GL_REPLACE, GL_REPLACE, GL_REPLACE).
    It worked fine.
    Then I drew the vector on the stencil buffer and used glStencilOp (GL_ZERO, GL_ZERO, GL_ZERO).
    It displayed the color of the sphere and the
    black color on the vector.

    How can I change the color of the vector
    on the stencil buffer?

    Thanks.

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2001
    Location
    London UK
    Posts
    195

    Re: color on the stencil buffer

    The stencil buffer does not keep color values so you question is not very easy to understand. You drew a vector? Is that an arrow and the length depending on the size of the vector or do you mean something else?

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. Clear color buffer with stencil test?
    By atnak in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-16-2003, 11:25 AM
  5. color on the stencil buffer
    By lynnvu in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-23-2001, 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