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

Riccardo Corsi riccardo.corsi at kairos3d.it
Mon Aug 8 01:03:34 PDT 2016

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 to the default
Frame Buffer,
and that's the reason why nothing shows up in the slave's FBO when its draw
is fired from the slave camera, right?


On Fri, Aug 5, 2016 at 5:53 PM, Jannik Heller <scrawl at baseoftrash.de> wrote:

> 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
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68296#68296
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160808/5c71a33f/attachment-0002.htm>

More information about the osg-users mailing list