Results 1 to 2 of 2

Thread: Stencil buffer problem ?

  1. #1
    Guest

    Stencil buffer problem ?

    Hello .
    I have a big problem . I can not work with stencil buffer .
    When I draw a object , OpenGL display it in frame buffer either
    I call before it "glStencilFun(GL_NEVER,..." or "glStencilFun(GL_ALWAYS,..."
    What is my mistake ?
    Thankyou before your favour.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    234

    Re: Stencil buffer problem ?

    Hi!

    Did you remember to enable stencil testing?

    Code :
     glEnable(GL_STENCIL_TEST)
    See ya'

Similar Threads

  1. Stencil buffer problem
    By Loicus in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-13-2012, 03:09 AM
  2. Stencil buffer problem
    By Stuart McDonald in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-13-2012, 07:36 AM
  3. Stencil buffer problem ?
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-01-2005, 02:03 AM
  4. Stencil Buffer Problem
    By mulat in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 02-20-2003, 05:50 AM
  5. HELP: Stencil buffer problem
    By C++ in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 11-24-2002, 05:56 PM

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