[osg-users] access frame buffer when using osgViewer::Viewer

Robert Osfield robert.osfield at gmail.com
Mon Dec 31 09:40:57 PST 2007


On Dec 28, 2007 8:30 PM, Javier Taibo <jtaibo at udc.es> wrote:
>
>   You can do it just calling glReadPixels after viewer.frame()

This *only* works when you have a single window, and run single
threaded, all other times the above will crash.

Use a Camera post DrawCallack, placing the glReadPixels in the callback.

Robert.


More information about the osg-users mailing list