PDA

View Full Version : Stencil bit planes



Anders
02-15-2002, 01:45 PM
I have a question concerning the stencil buffer. I wanted to know how many bits precision the stencil buffer on my graphics card had, so I ran glGetIntegerv(GL_STENCIL_BITS). The result i got was zero. Does that mean I don't have a stencil buffer or what? I dont think so, since I've written applications that use the stencil buffer. So what do the zero bits really mean? My card is a GeForce 256.

Damon
02-17-2002, 03:09 AM
Originally posted by Anders:
I have a question concerning the stencil buffer. I wanted to know how many bits precision the stencil buffer on my graphics card had, so I ran glGetIntegerv(GL_STENCIL_BITS). The result i got was zero. Does that mean I don't have a stencil buffer or what? I dont think so, since I've written applications that use the stencil buffer. So what do the zero bits really mean? My card is a GeForce 256.

Did you create an OpenGL context before calling glGetIntegerv?

06-30-2005, 11:44 AM
(glGetIntegerv(GL_STENCIL_BITS) return zero)
Hello .
This message answer is very late .but is use full
for pesons that have this problem and for solve it
search in the internet .
You should call "glutDisplayMode(....|GL_STENCIL_BUFFER)"
or in dialogs of windows you should set cStencilBits member of
PIXELFORMATDESCRIPTOR of your dialog .

Anders
06-30-2005, 12:05 PM
Thank you! That question has been bugging me for 3 years! Now I can finally sleep at night. :)