[osg-users] Using the Zbuffer of the MasterCamera to render the SlaveCamera

Robert Osfield robert.osfield at gmail.com
Tue Mar 24 07:20:17 PDT 2009

Hi Daniel,

On Tue, Mar 24, 2009 at 1:32 PM, Daniel <d.wuttig at gmx.de> wrote:

> The best way would be a per pixel shader test.

If this is the case then you just need to set up your rendering pipeline so
that the first camera renders to an FBO with a texture attached to it's
depth texture.

Personally I'd avoid terming the cameras master and slave in your case, as
the first camera really doesn't sound like a master camera in the sense that
the OSG uses master/slaves in osgViewer.  You usage model sounds simply like
a render to texture setup, with a series of RTT cameras.  You have provided
enough info to comment much more, but for sure usage of mixed terminonogy
will be confusing for everyone.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090324/3b3cbf70/attachment-0003.htm>

More information about the osg-users mailing list