Hi,

I have a problem concerning osg integration in Qt. I took the example of 
osgViewerQt as a base and implemented it in my project. When I execute frame 
function into my Qt lib there is no problem, I get my video into my widget. But 
if I call it from the graphic engine of my project ( compiled as a .dll and 
launched into a QThread ) it crashes when I execute the frame. I can set the 
viewer event handlers, call realize() function but it don't execute the frame 
properly.

But if I set up a window with setUpViewInWindow() function into the game 
engine, I can execute the viewer frame from the game engine without any crash. 
I think it's a graphic context problem but I can't put the finger on what is 
the origin of this issue.

Moreover, I found another curious problem maybe relative to the other problem I 
encounter. If, in the QtViewer, I don't set the threading model to SingleThread 
(like it is said into the osgViewerQt example), and I launch the frame from Qt, 
it crashes just like in my other problem (into the frame of ViewerBase, at 
bottom of the function, into the -> renderingTraversals() function, at line 
"(*itr)->runOperations()"). I try using other threading model but in vain.

Is someone understanding what happen and try to guide me to a solution ?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34667#34667





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

Reply via email to