Hi,
Robert Osfield wrote:
Hi J.P.,
On Tue, Dec 8, 2009 at 2:34 PM, J.P. Delport <[email protected]> wrote:
yes, but they are reading from either the frame buffer or a pbuffer, not
from an FBO RTT camera.
An FBO should not present any particular problems.
Firstly, I'm not advocating code changes. The current read back from FBO
if I attach images to a camera works fine. I have not been able to make
anything faster, even by hacking my PBO readpixel code into RenderStage :)
In the FBO case: the FBO can have multiple attachments, so if I want to
use glReadPixels in the camera callback I have to iterate through the
camera's attachments, bind the FBO manually (RenderStage already did
unbind), bind the PBO, set the read buffer to the appropriate attachment
etc. Iow I duplicate the code in RenderStage in the callback. It's not
that it's impossible.
jp
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org