Hi,

I'm currently working on a QT based project which displays multiple scenes, each in its own widget. I therefore create a osgViewer::Viewer instance for every scene. As soon as I create the second viewer, the widget doesn't respond to mouse/keyboard events for exactly the amount of time elapsed between the creation of the first viewer and the second viewer.

I tracked the problem down to osgViewer::Viewer.cpp line 538 (current SVN)
where it says:
/
// initialize the global timer to be relative to the current time.
osg::Timer::instance()->setStartTick();

Here the singleton timer is reset, which should only happen once in the application lifetime, not per viewer lifetime.
I guarded that call with a global boolean and the problem went away.

Would be great if someone with better knowledge of the osg internals could fix that issue properly.

Regards
Stefan
/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to