Hi,
Wyatt Earp wrote:
I am going through the osgprerender example to try to understand how
it works, and I think I am starting to understand a bit more, but i
have some questions.
If I instantiate a viewer, as is done in osgprerender...
osgViewer::Viewer viewer(arguments);
I assume this has a default camera right? Before the viewer.run() call, I
osg::Camera *camera = viewer.getCamera();
and see that the camera has POST_RENDER render order. in
createPreRenderSubGraph, another camera with PRE_RENDER render order
is added. Does this mean that the second camera renders the scene
before the default camera? Then the second scene renders the scene a
second time?
the idea is that the prerender camera generates a texture that is used
by the default (main) camera. The two cameras do not have to render the
same scene.
jp
W
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org