Hi Eron, On 4/23/07, Eron Steger <[EMAIL PROTECTED]> wrote:
It appears that nodes added under a slave camera using 'addSlave' do not have their update callbacks called. Is this intended, and if so, how would one go about updating these objects, short of adding them to master camera's scene graph.
Usually the slaves will share the same subgraph as the View's master camera, and by default the Viewer will enforce this, so calling the update traversal is only required for the main scene graph. I presume you are doing something similiar to the osgdistortion example is doing have using slave cameras that are detected from the main scene for some specific effect. In this case it does look like call update traversal on the scene would be useful. osgViewer::Viewer's update traversal will need to be modified to check for this condition and call the update traversal on the cameras that are different. The other alternative would be to use CompositeViewer for your app, as it might be more appropriate, each View can have its own scene graph. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
