Hi Sajjadul,

On Sun, Dec 12, 2010 at 10:58 AM, Sajjadul Islam <[email protected]> wrote:
> a scene is rendered to a texture. Is that ok to render to the same texture by 
> another camera?

The normal way to do render to texture (RTT) with the OSG is to use a
separate osg::Camera to do the render to texture than the Camera used
to render the main scene.  You may place the RTT Camera into the scene
graph below the main Camera, or place the RTT Camera as a slave Camera
of the View(er).  Have a look at the osgprerender, osgprerendercubemap
and osgdistortion examples for illustration of different ways of doing
this.

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

Reply via email to