Hi everybody.

I was having some trouble with Viewer::setReferenceTime today and while debugging found the issue in the following line [1]

double delta_ticks = (time-currentTime)*(osg::Timer::instance()->getSecondsPerTick());

As currentTime and time are given in seconds (see link below for context) but the result should be in ticks, dividing by getSecondsPerTick would be correct.

(Apart from that: Thank you for this great library :D)

Regards
Benjamin

[1] https://github.com/openscenegraph/osg/blob/3c55e5bc765aff03ed0850ef9b9b62dc6aabe6a8/src/osgViewer/Viewer.cpp#L446
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to