Hi,

other option is described in this thread:
http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/65564/

cheers
jp

On 20/06/11 14:26, Robert Osfield wrote:
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


--
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.

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

Reply via email to