[osg-users] Get Animation current time

Robert Osfield robert.osfield at gmail.com
Tue Jan 8 07:52:15 PST 2019


Good to hear you've resolved the problems and got things working
really efficiently ;-)

On Tue, 8 Jan 2019 at 14:11, Diego Mancilla <dmancillac at gmail.com> wrote:
>
> Hello Robert,
>
> Thank you again.
>
>  It turns out that I forgot to initialize the _timeMultiplier variable on the constructor of my AnimationPath class. Also I had a problem with some crazy references retrieved wrongly: for some reason on a "for (auto e: stl_map)..." loop, &e.second, was not getting the rigth address for the mapped value) so I change the loop and everything works now.
>
>  When I use the original approach (filling control points on standard AnimationPath) my code took about a minute per mobile object. Now, as the data is referenced the time involved is almost zero.
>
> Cheers,
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75430#75430
>
>
>
>
>
> _______________________________________________
> 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