[osg-users] Get Animation current time

Robert Osfield robert.osfield at gmail.com
Fri Dec 28 05:21:17 PST 2018


HI Diego,

The OSG uses an osg::FrameStamp for each new frame, this is accessible
from the Viewer and the different traversals like
UpdateVisitor/EventVisitor/CulllVisitor and the draw traversal.
Individual animations like AnimantionPath can have their own local
animation speed that take the FrameStamp's SimulationTime to compute
the local animation time to use.


Robert.

On Thu, 27 Dec 2018 at 18:01, Diego Mancilla <dmancillac at gmail.com> wrote:
>
> Hello,
>
> I have several AnimationPath intances for a number of moving objects. Each object has the same number of ControlPoints on their path.
>
> I need to know if there is a proper way to retrieve the current time of the animation (using a callback, for instance). I need this number in order to display it on another part of the main application (Qt app).
>
> Any pointers will be very much appreciated.
>
> Thank you!
>
> Cheers,
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75354#75354
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list