[osg-users] Using NodeMask...

Vincent Bourdier vincent.bourdier at gmail.com
Mon Mar 3 09:05:05 PST 2008


"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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080303/f4545282/attachment-0001.htm 


More information about the osg-users mailing list