Hello,

I'm trying to develop a Qt user interface around OpenSceneGraph Views
(using the CompoundViewer). I've seen the OsgViewerQt but was wondering
whether the OpenGL rendering could be done in an independent thread. Having
rendering and the user interface in the same thread makes the user
interface irresponsive when rendering becomes really slow (a few seconds
per frame).

My thought was to create a osg-window from a separate render thread and
forward all events from Qt to the render thread where they are handled. I
could block from the Qt thread on an event if necessary. Now if I create an
independent view using createGraphicsContext() it creates the window as
expected, however it shows up in the task bar as a separate window. Is it
possible attach the graphics context to the Qt widget that is the
placeholder in the Qt interface?

-- 
Nico Kruithof
nghk.nl
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to