Hi Robert,

just one more Question: I have a HUD-Node in my scenegraph. This HUD-Node simply gets left out when rendering to the image with the screenshot-camera.
Is there a switch to enable nested cameras?

Thanks for your help,
Andreas

Andreas Goebel schrieb:
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.




_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to