Excellent! Thanks for the help.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Friday, June 22, 2007 6:59 AM
To: osg users
Subject: Re: [osg-users] Slave camera node masks
Hi Joe,
OK, now understood. The inheritance of the osg::CullSettings from the
master Camera is controlled by the inheritance mask, you can switch
off bits you don't want to inherit. Note osg::Camera inherits from
CullSettings.
If you want the slave to be totally independent w.r.t the various cull
settings then do:
slavecamera->setInheritanceMask(osg::CullSettings::NO_VARIABLES);
Before you add it to the View.
Robert.
On 6/22/07, Sullivan, Joseph (CDR) <[EMAIL PROTECTED]> wrote:
> Sorry for the confusion - it all made sense in my head!
> Here's another stab at it:
>
> In View.cpp line 135 the View::addSlave(cameraX,..) method calls
updateSlave().
> In View::updateSlave(...) at line 121 cameraX's mask is reset:
> slave._camera->inheritCullSettings(*_camera);
>
> so if I do this:
> cameraX.setMask(bla);
> view1.addSlave(cameraX,...);
> The mask for cameraX will be reset to match the mask of view1's
camera.
> But if I change the order of these calls:
> view1.addSlave(cameraX,...);
> cameraX.setMask(bla);
> The camera's masks will be independent.
>
> thanks!
> -Joe
>
> ________________________________
>
> From: [EMAIL PROTECTED] on behalf of Robert Osfield
> Sent: Fri 6/22/2007 1:12 AM
> To: osg users
> Subject: Re: [osg-users] Slave camera node masks
>
>
>
> Hi Joseph,
>
> There isn't any code that sets the NodeMask on a slave in core osg or
> osgViewer, so I'm a bit confused by your assertion.
>
> Could you explain specifically what lines of code you are talking
about.
>
> Robert.
>
> On 6/21/07, Sullivan, Joseph (CDR) <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hello,
> >
> > Congrats on 2.0!
> >
> > In trying to update some code to stock 2.0 (not SVN) I noticed that
in the
> > viewer.addSlave( slaveCamera,...) method the slaveCamera's node mask
will be
> > reset to match the default viewer camera's nodemask. You can
achieve slaves
> > with independent nodemasks, but only if you set the mask after the
call to
> > viewer.addSlave(). Is the intended behavior (behaviour)?
> >
> > Thanks,
> >
> > Joe
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/