HI Bob, If you are adding a scene to a viewer you should use viewer->setSceneData() so it can manage the internal osgViewer::Scene object as this manages DatabasePager correctly for your scene.
For in scene graph Camera's like RTT then use addChild, occassionally you also detach a slave Camera from using the viewer's scene data and in this instance you also use addChild. The osgdistortion example shows this in action. Robert. On Mon, Jul 27, 2009 at 5:15 PM, Bob Youmans<[email protected]> wrote: > Hi All, I have a single viewer/view based architecture with multiple > cameras/slaves, and I don’t understand the relation between > viewer->setSceneData and camera->addChild. Can I not use addChild to render > different graphs to the view? Should I be removing the graph from the > scene, in which case what do the slave cameras render? > > > > Thanks, > > Bob > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

