[osg-users] Using NodeMask...
Art Tevs
stud_info2 at yahoo.de
Mon Mar 3 11:50:33 PST 2008
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
More information about the osg-users
mailing list