Hi Robert,
it seems to be the copy-constructor that messed things up.
If I set up the screenshot-camera manually:
osg::ref_ptr<osg::Camera> oldcamera = sceneView->getCamera();
camera->setClearColor(oldcamera->getClearColor() );
camera->setClearMask(oldcamera->getClearMask() );
camera->setColorMask(oldcamera->getColorMask() );
camera->setTransformOrder(oldcamera->getTransformOrder() );
camera->setProjectionMatrix(oldcamera->getProjectionMatrix() );
camera->setViewMatrix(oldcamera->getViewMatrix() );
and then attach the scenegraph to it, afterwards attach the camera to
the sceneview, and then turn everything back to normal by setting the
old scene-graph (that doesn´t have the camera), everything works fine.
I get a maximum-resolution of 4000 pixels.
Regards,
Andreas
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/