Lars
09-17-2001, 05:20 AM
Hi
I have a little problem with my program, it gets far to complex, and at the moment i am putting in a new feature, which uses the stencil buffer.
But it seems that i can't write to the stencil Buffer. I know that my general setup works (pixelformat and so on) because i am doing shadowvolumes with the stencilbuffer, and there it works.
But my rendering code is so complex, that i might oversee something that is just happening inbetween that disables stenciling.
So my Question :
What can lead to disabled stenciling ?
Some side notes. I test the working of the stencilbuffer by writing it out with readpixels and the packed_depth_stencil extension from nvidia. I use a geforce2mx with the 20.81 Drivers. My stencilsettings are:
The stencilfunction is set to always, and it replaces with the ref Value of 128 on pass and fail, only zfail keeps.
Thanks in advance
Lars
I have a little problem with my program, it gets far to complex, and at the moment i am putting in a new feature, which uses the stencil buffer.
But it seems that i can't write to the stencil Buffer. I know that my general setup works (pixelformat and so on) because i am doing shadowvolumes with the stencilbuffer, and there it works.
But my rendering code is so complex, that i might oversee something that is just happening inbetween that disables stenciling.
So my Question :
What can lead to disabled stenciling ?
Some side notes. I test the working of the stencilbuffer by writing it out with readpixels and the packed_depth_stencil extension from nvidia. I use a geforce2mx with the 20.81 Drivers. My stencilsettings are:
The stencilfunction is set to always, and it replaces with the ref Value of 128 on pass and fail, only zfail keeps.
Thanks in advance
Lars