HI Daniel,
You'll need to call Viewer::setUpRenderingSupport() to that the new
slave can work.
BTW, why are you creating/adding slaves on the fly? How many slaves
do you have?
Robert.
On 6/28/07, Kallfass, Daniel, SDGE1 <[EMAIL PROTECTED]> wrote:
Hello,
I am using osgViewer::Viewer from OSG 2.0and 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/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/