Hi Nerazzuri?,
I suspect that your code to find the switch node is not working.
As a quick and dirty example try saving a pointer to the switch node as a
global and in your main loop try turning it on and off.
Code:
int n = 0
while( !viewer.done() )
{
annotationsSwitch->setValue(0, (++n) % 2 );
viewer.frame();
}
Assuming you only have the one child your text should flash on/off.
That would help you narrow down if the problem is with setting the switch value
or if the problem is in getSearchedNode.
Cheers!
Eric
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42847#42847
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org