Re: [osg-users] osgUtil::SceneView and MFC

2009-06-03 Thread Andrew Cunningham
I seemed to have worked around my problems by replacing viewer()->frame() with the sequence of calls skipping the eventraversal() call viewer->advance(); viewer >updateTraversal(); viewer >renderingTraversals(); -- Read this topic o

Re: [osg-users] osgUtil::SceneView and MFC

2009-06-03 Thread Andrew Cunningham
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

Re: [osg-users] osgUtil::SceneView and MFC

2009-06-03 Thread Robert Osfield
Hi Andrew, Rather that use osgUtil::SceneView use osgViewer::GraphicsWindowEmbedded rather than window inheritance as this will enable you to most of the osgViewer functionality that you'll already be using. You'll need to inject your own events. It might also be able to resolve your event handl

[osg-users] osgUtil::SceneView and MFC

2009-06-02 Thread Andrew Cunningham
Hi, If anyone has a code sample using osgUtil::SceneView (OSG 2.8.x) and MFC in a MDI app that would be really helpful to me. The osgViewer::Viewer class is proving problematic to use - I am fighting with it over events.. I need to take a step back to a level where I have more control. Thank