View Full Version : HELP: Stencil buffer problem

11-23-2002, 11:12 PM
Stencil buffer works only in applications which compiled not on my computer:
and not works in applications, which compiled from this apllication source code on my computer!
What happened?

I am not LAMER

11-24-2002, 06:56 AM
Um...maybe you don't have the stencil functions setup right? How are we supposed to know unless you post some code and give more info than "my program don't work, why?"


11-24-2002, 07:28 AM
Typically there is some kind of runtime test but you may have a compile time test in there also, and don't have the correct OpenGL header files. Stencil is not an extension but I expect there's a #ifdef or two in your code that is causing the stencil code path to be compiled out. Try getting the sdk for your card or the glext extension header.

11-24-2002, 09:34 AM
I just thought of something. Are you SURE you requested 8 bits of stencil. I had that problem w/ my first shadow volume program, I assumed I was but my framework was broken and I didn't know it, so I really wasn't requesting 8 stencil bits. I was requesting 0 bits. http://www.opengl.org/discussion_boards/ubb/biggrin.gif That will cause stencil funcs to not work at all.


11-24-2002, 04:56 PM
j00 r l4m3