Re: [osg-users] osg support for fast pixel readback from FBOs?

2013-06-14 Thread Christian Buchner
2013/6/11 Robert Osfield robert.osfi...@gmail.com You can use osg::PixelBufferObject to assist with transferring data to and from the GPU. The OpenSceneGraph/osgscreencapture example illustrates the use of PBO's including buffering. Hmm, strange. The osgscreencapture sample does not use

Re: [osg-users] osg support for fast pixel readback from FBOs?

2013-06-14 Thread Robert Osfield
On 14 June 2013 11:56, Christian Buchner christian.buch...@gmail.com wrote: Is there any particular reason why it's done this way, instead of relying on the osg PixelBufferObject? I don't recall the specific decision when osgscreencapture was written, but in sometimes for very specific purposes

Re: [osg-users] osg support for fast pixel readback from FBOs?

2013-06-11 Thread Robert Osfield
Hi Christian, You can use osg::PixelBufferObject to assist with transferring data to and from the GPU. However, to hide the cost of the wait for rendering pipeline to flush and the transfer back it's best to double buffer and read the previous frames result. Without doing the double buffer

Re: [osg-users] osg support for fast pixel readback from FBOs?

2013-06-11 Thread Robert Osfield
On 11 June 2013 13:19, Robert Osfield robert.osfi...@gmail.com wrote: only passing the minimum amount of data if any back to the GPU. Meant to say back to the *CPU*. ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] osg support for fast pixel readback from FBOs?

2013-06-11 Thread Christian Buchner
Thanks for this information. I think I can tolerate a frame of delay in my read back. My frame buffer format is float with four color channels, I hope that does not cause additional slow-downs (due to falling out of the fast path in the driver) Christian