Re: [osg-users] Rendering in-scene camera from different cameras

2016-08-08 Thread Riccardo Corsi
Hi Jannik, NESTED_RENDER plus a higher renderBin number is exactly the way I've sorted out the issue, even though there's no way to use the standard camera draw-callback. So based on your first reply, the POST in-scene camera, if nothing is assigned to its renderTargetImplementation, will render

Re: [osg-users] Rendering in-scene camera from different cameras

2016-08-05 Thread Jannik Heller
Looking at the OSG code more closely there may be an easier way. If you set the Camera's render order to NESTED_RENDER, it *will* inherit the currently used render target. Then set a RenderBin number on the camera to make sure it's drawn after the scene. That should do it. Cheers, Jannik

Re: [osg-users] Rendering in-scene camera from different cameras

2016-08-05 Thread Jannik Heller
Hi, A Camera does not inherit the render target implementation, it will simply use what is specified (default FRAMEBUFFER). You bring up a valid use case, perhaps adding an "inherit render target" mode for Cameras would be a nice feature for the osg core to have. For the time being what I

[osg-users] Rendering in-scene camera from different cameras

2016-08-04 Thread Riccardo Corsi
Hi all, I have an in-scene POST camera to render a GUI. I don't specify anything regarding its RenderTargetImplementation and it renders to the frame buffer as expected. Now I have to render the same scene + GUI with an FBO camera: I attach as slave to the viewer specifying to use the same scene