[osg-users] Get Animation current time
Diego Mancilla
dmancillac at gmail.com
Tue Jan 8 05:54:15 PST 2019
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
More information about the osg-users
mailing list