Hello,

we are trying to port our QT4 based application from Producer to
osgViewer and have
some problems how to do it.

We can't use the osgSimpleViewerQT4 examples, because we don't want osg
to render in the main QT thread but in a separate thread.

Our old solution was to create a QT widget and then pass the Window
Handle (winID)
To the producer camera rendersurface, which then uses it to draw the
scene
in a separate thread:
producerCamera->getRenderSurface()->setWindow( myWinID );

Is there a way to do something similar using osgViewer? We couldn't get
osg to
render into a QT4 window from another thread than the main thread,
although we
loaded the scene and called the first and following "frame()" calls in
the same
thread to ensure that the new OpenGL context is created and used in the
same thread.

Another issue we have is that it seem that there is no flag similar to
producerCamera->getRenderSurface()->shareAllGLContexts( true );
to share all OpenGL contexts. Have we missed something?

Thanks,

Daniel Kallfass
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to