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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>:
> >
> >  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@lists.openscenegraph.org
> >
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> > _______________________________________________
> osg-users mailing list
> osg-users@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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to