Hi,

I am trying to use an osg::Switch node in my scene to toggle on/off certain 
sub-graphs. 

the way I have my subgraph set up is:

I have a geode (textGeode) which is placed under a switch node and the switch 
is then place below an LOD node. 


Code:

annotationsSwitch->addChild(textGeode, true);
  annotationsLod->addChild(annotationsSwitch, 0, 700);




When I try using the following to turn the switch On/Off, my geometry is still 
visible. 

Code:
setChildValue(
                     getSearchedNode(QString("textGeode")), false);



OR


Code:
setAllChildrenOff ()



I was under the impression that turning the geode off would ensure that the 
geometry placed below the geode would also be off. 

Do I need to use node masks to achieve this?

Thanks!

Sincerely,
Sanat.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42845#42845





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to