Hello,
I am using osgViewer::Viewer from OSG 2.0 and try do remove and create a new
slave camera with a new GraphicsWindowWin32 during runtime.
Here is the example code:
_osgviewer->removeSlave(0);
_camera = new osg::Camera();
_camera->setGraphicsContext( myNewGraphicsWindowWin32 );
_osgviewer->addSlave(_camera.get());
The new GraphicsContext is created successfully but the scene displayed looses
all its textures and most of its geometry. Nodes that are loaded AFTER creating
the new camera are displayed correctly.
What could be the problem here? One idea might be that the OSG contextID is
handled incorrectly at GraphicsWindowWin32 (I use a GraphicsWindow32 which is
initialized with inheritedWindowData and setInheritedWindowPixelFormat)
Thanks,
Daniel
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/