This was something I posted a while back... "ReferenceTime is the time that the viewer is using to calculate statistics like frames/second etc, so you can think of it as the internal realtime clock and you generally don't want to touch it. SimulationTime is the time that updateVisitors will see, so things like animated nodes are evaluated at this time. You can use this to change the speed of playback of an evolving scene using viewer->frame(my_time) in your main frame/event loop."
-Drew On 5/28/07, Enrique Parodi <[EMAIL PROTECTED]> wrote:
Hi all. I am new to osg and i would like to make an animated scene based on a simulation, but don't know if its there a way to control the simulation time from a global access point. I have noticed the FrameStamp::getSimulationTime() method wich is called by the AnimationPathCallback: double time = nv->getFrameStamp()->getSimulationTime(); But i really don't know where this simulation time comes from, and the difference with getReferenceTime(). Thanks to everybody in advance. -- Enrique... _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
-- Drew Whitehouse ANU Supercomputer Facility Vizlab _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
