Hi Nicolas,

Personally I'd just create a osg::Camera an assign a FBO attachments and a
FinalDrawCallback to do a glReadPixels/osg::Image::readPixels() and then
store the osg::Image.  You could attach this Camera to the main
GraphicsContext/Window of your application and just use it's NodeMask to
toggle it on/off when you need to take a picture.

There isn't any need to create a pbuffer these days, unless you want a
totally offscreen application that never has an onscreen windows to
associated an FBO with.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to