[osg-users] FBO resizing problem

Himar Carmona himarcarmona at gmail.com
Mon Dec 3 16:47:22 PST 2007


Hi,

  i'm trying the second approach of having a FBO greater always. Is there an
easy way to set a FBO and copy only a portion of it back to memory? Using
FBO, an image to control the transfer to main memory and the requisite of
having image copy the pixels in a specified location (given pointer), i
haven't achieve it. If i set the image size to 2048x2048 (for example) so
that the FBO takes this size, and then (before a viewer.frame call) set the
viewport to the required size, image.readPixels allocates its own buffer,
because the sizes differ. The result is a new buffer controlled by the image
object of the viewport size and my buffer untouched.

   Any ideas?

Thanks,
Himar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071204/7bc31d5e/attachment.htm 


More information about the osg-users mailing list