It sounds like what you are doing should work fine. The stencil buffer will not be preserved across the rendering of vgui, but you can use it between rendering and postprocessing. The tonemapping system will use 1 bit of it temporarily, but as long as you are done with it by the time tonemapping happens, I don't think there is another user. The code that uses it in the client dll for tonemapping is present in the sdk.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maarten De Meyer Sent: Friday, August 15, 2008 4:18 AM To: [email protected] Subject: [hlcoders] [ep1] Stencil Buffer availability Hi list, I'd like to use the stencil buffer to store a mask during my main render pass so I can use it in a postprocess effect. My question is simple: is the main stencil available and preserved during the main render loop or is it used by something already? The only use of stencil I see is in mat_tonemapping_occlusion_use_stencil, but I'm not sure where in the pipeline this operates on the stencil buffer. Maarten _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

