Hello, Thanks or ur reply, how should i read back the data from the texture, can i attach an image to the camera(or texture?) and read data from that image?, is it possible and how.
Thanks, Best regards On Fri, Oct 1, 2010 at 12:52 PM, Ulrich Hertlein <[email protected]>wrote: > Hi, > > On 1/10/10 20:11 , Mahendra G.R wrote: > > this is my situation : i have a fragment shader doing some calculation > and i want to store > > it in a texture, i saw some examples but most of them dont talk about > shaders. how can i > > get the data back from the shader and store it as a texture using OSG. > I'm trying to do > > it with an FBO and a camera to render > > In general render to texture is no different when using shaders. You setup > the camera to > render to a texture and the shader is ignorant of where it's writing its > gl_FragColor to. > > The situation changes a little when you need to write to multiple render > targets from the > fragment shader. > > Cheers, > /ulrich > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- http://www.mahendragr.com
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

