[osg-users] Using NodeMask...
Vincent Bourdier
vincent.bourdier at gmail.com
Tue Mar 4 00:13:26 PST 2008
Hi Art,
I've tried something like that :
geodeEarth->setNodeMask(0x5);
pViewer->getCamera()->setCullMask(0x2);
It gives me the result i was waiting for : all is visible, only the earth is
not.
It isn't possible for me to set all other nodes, because I load the
geometries form an IVE file.
If the default mask is 0xffffffff, I'm surprised that is works well...
Thanks,
Vincent.
2008/3/3, Art Tevs <stud_info2 at yahoo.de>:
>
> Hi Vincent,
>
> haven't you forgot to set all other nodes or at least
> the sibling nodes to the eartGroup with node mask
> (0x0).
>
> Otherwise the default mask is something like
> 0xffffffff. Hence with your current setup you still
> will be able to see all the nodes.
>
> Cheers,
> Art
>
>
> --- Vincent Bourdier <vincent.bourdier at gmail.com>
> schrieb:
>
>
> > "toggle the earthGroup NodeMask between 0 and
> > 0xffffffff."
> >
> > it is not what i done here : ?
> > earthGroup->setNodeMask(0x1);
> >
> > Is my code good concerning the camera ? is it a
> > viewer parameter ? (to set
> > cullMask)
> >
> > I preferer avoid using switch node for the moment,
> > it would add nodes to the
> > graph, and if another solution exist, it would be
> > better...
> >
> > Thanks,
> >
> > Vincent.
> >
> >
> >
> > 2008/3/3, Paul Martz <pmartz at skew-matrix.com>:
> > >
> > > Why it doesn't work ? is it the more easy way to
> > make a hide/show
> > > function ?
> > >
> > > A simpler solution would be to toggle the
> > earthGroup NodeMask between 0
> > > and 0xffffffff.
> > >
> > > Another solution would be to use a top-level
> > Switch node.
> > >
> > > Paul Martz
> > > *Skew Matrix Software LLC*
> > > http://www.skew-matrix.com
> > > 303 859 9466
> > >
> > > _______________________________________________
> > > osg-users mailing list
> > > osg-users at lists.openscenegraph.org
> > >
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > >
> > >
> > > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
>
>
>
>
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
>
> _______________________________________________
> 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/20080304/74a5e8db/attachment.htm
More information about the osg-users
mailing list