Re: [osg-users] Change render target from FBO to frame buffer

2012-10-12 Thread Robert Osfield
Hi Kenzo, On 11 October 2012 22:07, Kenzo Lespagnol kenzo.lespag...@cm-labs.com wrote: From your answer I understand that I should have a slave camera which render the scene to texture and then doing my post processing from this slave camera. To disable my post-process I should only remove

Re: [osg-users] Change render target from FBO to frame buffer

2012-10-11 Thread Robert Osfield
Hi Kenzo, I wouldn't implement this type of management by reassigning a single osg::Camera with different setting but use a different Camera. I would also leave alone the master Camera and instead prefer to add/remove slave Cameras. My guess to why you haven't been able to do what you want is

Re: [osg-users] Change render target from FBO to frame buffer

2012-10-11 Thread Kenzo Lespagnol
Hi Robert, Thanks for your quick answer. I wouldn't implement this type of management by reassigning a single osg::Camera with different setting but use a different Camera. I would also leave alone the master Camera and instead prefer to add/remove slave Cameras. From your answer I

[osg-users] Change render target from FBO to frame buffer

2012-10-10 Thread Kenzo Lespagnol
Hi, I'm trying to disable a render-to-texture by removing the slave cameras, used for the RTT, and by restoring the main camera. But it seems I'm not able to restore my main camera to render into the frame buffer again. I set the main camera to render to texture by following: Code: