I want to capture my OSG screen and dump it to a jpeg or png file. My
understanding is to attach a callback to the main osgViewer camera and
perform a osg::Image::readPixels(...) from within the callback. That
works in the simple case. But, if I have a basic HUD that is itself a
camera alongside other nodes in the scenegraph, then I never see the
HUD in my osg::Image::readPixels call. That would make sense since my
callback is operating on the main camera and not my child node
camera....but leaves the question of how do I perform a "complete"
screen capture on a graph with multiple cameras?

Is there an example I missed?
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to