Hi Daniel,

On 5/3/07, Kallfass, Daniel, SDGE1 <[EMAIL PROTECTED]> wrote:

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?



Yes, but its only support under Windows so far.  X11 and OSX will come along
later.

What you do is create a osg::Traits object with
osgViewer::GraphicsWindowWin32::WindowData attached to it.


arghhgh my RSI is killing me, could someone else jump in here and explain.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to