Hi Harald, The OSG uses an osg::FrameStamp object to provide control over timing related features, this object has a SimulationTime and ReferenceTime parameters. The SimulationTime is the time used by animation codes, while the ReferenceTime is actual time since the start of viewer's time stamp was initialized - basically when you started rendering.
By default the osgViewer::Viewer/CompositeViewer will set the FrameStamp on each new frame and the SimulationTIme and ReferenceTime will be consistent, but you can provide the viewer.frame() call with your own time to use for the SimulationTime by unrolling the viewer main loop to something like: while(!viewer.done()) { double mySimulationTime = myGetSimulationTimeFunction(); viewer.frame(mySimulationTime); } Robert. On 15 June 2014 17:59, Harald Müller <lacky19102...@yahoo.de> wrote: > Hi, > Currently I am playing around with distributed rendering, for that I need to > synchronize Animations between 2 or more computers. > So the easiest way to achieve that is to synchronize animations with a server > time. E.g. if the servers says it is time X, I set the animation on each > computer to time X. > My first thought was to use the addUpdateCallback and set in the > operator()(osg::Node* node, osg::NodeVisitor* nv) method the animation time, > but there is no setAnimationTime(...) > After that I was trying with setTimeOffset(...) but this didn't work too. > Now I am out of guesses > Thank you for any help! > > Cheers, > Harald > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=59747#59747 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org