Hi Chris,

The key to managing multiple Camera's that overlay each other is to decide
how you want to mange the depth buffer for each of the cameras.  For the
setup in your description - a Camera to render the background, then a main
camera to render the main scene I'd use a PRE_RENDER for the background as
you have done but then you need to set up the Camera for the main scene so
that it clears the depth buffer.  The osghud example illustrates clearing
of the depth buffer - but it does this for the slave camera, while you want
to do this for the main camera.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to