[osg-users] access frame buffer when using osgViewer::Viewer
Yanling Liu
vrnova at gmail.com
Mon Dec 31 21:14:11 PST 2007
Thanks Robert. That's what I need.
On Dec 31, 2007 12:40 PM, Robert Osfield <robert.osfield at gmail.com> wrote:
> 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.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080101/1000d5a9/attachment.html
More information about the osg-users
mailing list