Hi Johan,

The slaves can either be relative to the master camera with the local
slave projection and view offsets post mulitply this to give you the
final view and projection matrix of the slave, or independent of the
master camera when the slave camera defines both the view and
projection matrix itself.

The way you control the inhertance is via the
osg::Camera::setReferenceFrame(..) method, use RELATIVE_RF for
relative, ABSOLUTE_RF for independent.  Note, using ABSOLUTE_RF will
switch off the inheritance of both the view and projection matrices.

Have a look at the osgdistortion or osghud examples to see examples
where slaves are set with ABSOLUTE_RF.

Robert.

On 8/10/07, Johan Johnsson <[EMAIL PROTECTED]> wrote:
> Hey !
>
> I work on a project where i need to setup a few slaves to the mastercamera,
> and i suffer a slight problem during this operations.
>
> The viewport and the different offsets is no problem, however the frustum
> is not get the values that i
> send in as parameters to setProjectionMatrixAsFrustum(). It seems to get
> the frustum + the offset from the mastercamera.
>
> How do i define the frustum i want my slaves to use, irrespective of the
> mastercamera.
>
>
> // Johan
> _______________________________________________
> 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