H Dnaiel,

The normal way to manage rendering to multiple textures is to have two
different Camera, if you want to switch between these just using an
osg::Switch above the Cameras,

Robert.

On Mon, Jun 20, 2011 at 1:17 PM, Daniel Melzer <[email protected]> wrote:
> Hi everybody,
>
> Just a quick question on changing render targets.
>
> I have an osg::Camera with a Texture attached as render target.
> Depending on certain conditions I want to detach the old Texture and attach a 
> different Texture.
> My inital guess would be something like this:
> camera->detach(..., oldTexture);
> camera->attach(..., newTexture, ..);
>
> Unfortunately this doesn't work and the camera continues to render to the old 
> Texture.
> Anything I'm missing out? Would be glad for any suggestions.
>
>
> Thank you!
>
> Cheers,
> Daniel
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=40685#40685
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to