Hi Michael,

On 20 May 2015 at 04:05, michael kapelko <[email protected]> wrote:
> I want to make sure I got you right.
> There's no way to convert Texture to Image, I can only get the Image at the
> time of Camera draw operation.

Partially correct.  There is an
osg::Image:::readImageFromCurrentTexture(..) that allows one to
convert the current bound texture to an osg::Image.

> Thus, it would be easier to attach the Image
> to Camera. Correct?

I didn't suggest attaching an osg::Image to osg::Camera at any point.

What I would suggest is using a osg::Camera  FinalDrawCallback to do
Image::readPixels().  Have a look at the osgscreencapture example.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to