Brett Thomas Lee wrote on Tuesday, September 08, 2009 4:51 PM: > Hi, > > Similar to Mr Paul I tried to modify my scene by calling update like this > > viewer.realize(); > while(!viewer.done()) > { > viewer.advance(); > viewer.eventTraversal(); > > //viewer.updateTraversal(); > mtLeft->setUpdateCallback( new RotateCB ); > viewer.renderingTraversals(); > viewer.setCameraManipulator(new osgGA::TrackballManipulator()); > } > > But nothing happened!!
If you comment out the update traversal, no update callbacks will be executed. What Paul was suggesting is doing whatever RotateCB does in while(!viewer.done()), like so: viewer.realize(); while(!viewer.done()) { viewer.advance(); viewer.eventTraversal(); //viewer.updateTraversal(); doRotateCBStuff(); viewer.renderingTraversals(); viewer.setCameraManipulator(new osgGA::TrackballManipulator()); } -- Bryan Thrall FlightSafety International bryan.thr...@flightsafety.com _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org