Re: [osg-users] depth and stencil buffers in multi-pass rtt

2011-01-11 Thread J.P. Delport
-boun...@lists.openscenegraph.org Date: 01/10/2011 02:05AM Subject: Re: [osg-users] depth and stencil buffers in multi-pass rtt Hi, what is your clearmask set to for the 2nd camera? Are the projections the same for the 2 cameras? How about depth range? Only other thing I can recommend is have

Re: [osg-users] depth and stencil buffers in multi-pass rtt

2011-01-10 Thread Brian R Hill
. -osg-users-boun...@lists.openscenegraph.org wrote: - To: OpenSceneGraph Users osg-users@lists.openscenegraph.org From: J.P. Delport jpdelp...@csir.co.za Sent by: osg-users-boun...@lists.openscenegraph.org Date: 01/10/2011 02:05AM Subject: Re: [osg-users] depth and stencil buffers in multi

[osg-users] depth and stencil buffers in multi-pass rtt

2011-01-09 Thread Brian ...
folks, i'm trying to create 2 render to texture cameras that share the same depth and stencil buffer. i want to render color, depth, and stencil values with the first rtt camera and then use the resulting depth and stencil with the second rtt camera. this is what i'm doing: create color

Re: [osg-users] depth and stencil buffers in multi-pass rtt

2011-01-09 Thread J.P. Delport
Hi, what is your clearmask set to for the 2nd camera? Are the projections the same for the 2 cameras? How about depth range? Only other thing I can recommend is have a look at osgUtil/RenderStage.cpp and check for search for depthAttached. You'll find the code and osg bitmasks you can set