Hi Robert,

> On 2 April 2012 14:21, Frederic Bouvier <[email protected]> wrote:
>> may I ask how a camera can inherit the viewpoint of a sister (slave) camera ?
>> Or does it inherit the viewpoint of the master camera ?
>
>The OSG inherits state/settings from parents, there isn't any sibling
>inheritance.

One more thing: it happens that I implement cascaded shadow map with a single 
shadow map and 4 cascades. My scenegraph is like this :

master camera
=> slave shadow camera (hold an fbo on a S x S depth texture)
   => cascade1 : child camera, viewport (S/2 x S/2 @ 0, 0)
   => cascade2 : child camera, viewport (S/2 x S/2 @ 0, S/2)
   => cascade3 : child camera, viewport (S/2 x S/2 @ S/2, 0)
   => cascade4 : child camera, viewport (S/2 x S/2 @ S/2, S/2)

I want to know if the inherited viewpoint is propagated to the cascade camera 
if I set the reference frame of the main shadow camera and the 4 cascades to 
ABSOLUTE_RF_INHERIT_VIEWPOINT

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

Reply via email to