-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
.
-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
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
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
4 matches
Mail list logo