[osg-users] toggle osg::Drawable (text) visibility?

2010-05-04 Thread Cory Riddell
I have geodes that contain osgText::Text drawables (used as labels). The same geode's contain other drawables that make up the entity that is being labelled. I also have a toolbar button to turn labels on or off. What is the best way to toggle the visible state of the osgText::Text instances when

Re: [osg-users] toggle osg::Drawable (text) visibility?

2010-05-04 Thread Jean-Sébastien Guay
Hi Cory, I also have a toolbar button to turn labels on or off. What is the best way to toggle the visible state of the osgText::Text instances when my user asks to enable or disable these labels? I think I could make the text transparent, but that feels wrong. Any suggestions? If you want to

Re: [osg-users] toggle osg::Drawable (text) visibility?

2010-05-04 Thread Cory Riddell
J-S, On 5/4/2010 12:34 PM, Jean-Sébastien Guay wrote: > If you want to toggle visibility of all your text elements under a > same Geode, you can use the node mask on the Geode. My problem is that I have mixed my text elements with other geometry elements (the labels are part of the thing they are