Hi, "I am sorry, I do not understand this. Could you expand on this? Which code are you referring to?"
I'm reffering to ViewerBase::run(). And managing frames. Calling ViewerBase::frame renders one frame. Run() function handles frame rate and on demand rendering, etc. In Qt I'm referering to class HeartBeat localy defined in GraphicsWindowQt.cpp which in fucntion timerEvent handles rendering of frames. Main idea in this is rendering frames in Qt event loop with timer. Timer event is called whenever Qt is not busy with handling other events. Thus you don't have to create custom QTimer for rendering nor custom run() function (or frame() function) with something like HandleQtEvents() call inside. osgQt::setViewer is sufficient, but if you want to render in different thread, you will have to create custom thread loop with exec() call. CompositeViewer: It's very simple, just use osgviewerQt example, but instead of defining timer for updating(), call osgQt::setViewer() in main function (warning: setViewer() uses observer_ptr and locks it, so you will have to create reference pointer of widget instead of normal one) Thank you! Cheers, Filip[/quote] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48135#48135 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

