HI Aurelien,

You can can't share buffer attachments between different Camera/FBOs.
Perhaps you could use a texture attachment from one Camera's FBO as a
source for writing the result into another Camera's FBO, or simply use the
same Camera FBO and just locally modify the projection and modelview
matrices by using a nested Camera rather than a RTT/FBO based one, a nested
camera inherits it's parents buffer.

Robert.

On 6 December 2012 08:54, Aurelien Albert <[email protected]>wrote:

> Hi,
>
> In my scene graph, I use a main camera with FBO severals attached :
>
> - a FBO for COLOR0
> - a FBO for COLOR1
> - a FBO for DEPTH
>
> I would like to use a child camera (not slave) with :
>
> - another FBO attached to COLOR0
> - the same FBO a main camera for DEPTH buffer
>
> Is there anyway to inherit the DEPTH buffer attachment from main camera ?
>
>
> Thank you!
>
> Cheers,
> Aurelien
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51433#51433
>
>
>
>
>
> _______________________________________________
> 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