Okay, i have correct it by a second attachment from the camera colorbuffer 
to....the image already attached to the output rtt texture...:(

Code:
_prerenderCamera[i]->attach(osg::Camera::BufferComponent(osg::Camera::COLOR_BUFFER),
 _RTTOutTexture->getImage());



I don't think it's nice ....I haved try a

Code:
osg::Image *im=outputtexture->getImage();
im->readPixels(0,0,im->s(),im->t(),GL_RGBA, GL_UNSIGNED_BYTE);


in a osg::Camera::DrawCallback
but it seems to fails: it read the mainview in the osg::Image and not the 
prerendertotexture results...

Is there anyone who knows how to readback properly a osg::Texture2D in a 
osg::Image after a RTT pass?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24366#24366





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

Reply via email to