Hi,
what comes out of the RTT camera is just a texture (or textures). What's
in the texture depends on what the camera is looking at (for no shader),
what it's looking at plus some processing on the output pixels (fragment
shader) or completely on shader code (ignore the scene and just use
input textures and processing).
It makes no difference if the camera is looking at a scene or just a
quad (a screen aligned quad is just a special case for doing per pixel
transformation of input). So, you can make your RTT camera look at any
scene you want.
I still don't know what you actually want to save. A texture that is
applied to the model? A texture that contains a view onto a scene
containing a model with textures?
rgds
jp
On 14/10/10 16:07, Aitor Ardanza wrote:
J.P. Delport wrote:
Hi,
You can get an osg::Image for any or all of the RTT textures. Have a
look at osgmultiplerendertargets.cpp example. Read below the line:
// we can also read back any of the targets as an image, modify this
image and push it back
Yeah, I've been playing and I understand it, but osgmultiplerendertargets.cpp
uses a quad plane to generate RTT and in my case would be the texture of the
model ... I'm not sure if this technique will serve to my purpose, which is
read back the target (modified texture model) as an image from fragment shader.
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32752#32752
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org