I am trying to "port" an existing MFC application to use OSG instead of a
"home-grown" scene graph. For Rev.0 I need to handle all my own MFC events as
per my existing structure - I do not want the Viewer do any event handling.
I have tried two options
1) using a "Render" thread as per the OSG MFC example. This did not work too
well as I am modifying the scene graph via the main GUI thread and raised
various threading problems. I realize that using multiple threads is the way to
go, but I need to get things working without re-architecture the complete app.
2) I tried something naive such as
OnDraw()
{
PreRender();
getViewer()->frame();
PostRender();
}
This worked mostly, but the viewer has it's own Windows event
handling/dispatching and I ended up with a recursive call to OnDraw() and thus
frame()
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13440#13440
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org