[osg-users] Bug in Viewer::setReferenceTime

Benjamin Richter br at waldteufel.eu
Sat Jun 6 13:44:27 PDT 2015


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



More information about the osg-users mailing list