Hi,
I've had to change several things to works it...
OSGQtRenderThreadManager: public QThread, and the render thread loop is:
Code:
void OSGQtRenderThreadManager::run()
{
_done = false;
osg::notify(osg::INFO)<<" Start OSGRender Thread!"<<std::endl;
while(!_done)
{
emit updateFrame();
msleep(10);
}
osg::notify(osg::INFO)<<" End OSGRender Thread!"<<std::endl;
}
In the constructor of OSGQtTRenderThreadManager I have defined the connection
between these object and void ViewerQT::paintGL():
Code:
connect(this,SIGNAL(updateFrame()),_qtViewer,SLOT(updateGL()));
Now I can update render frame in another frame than GUI main frame!
Thank you!
Cheers,
Aitor
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46519#46519
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org