ScreenSpaceLayout (Declutter) -> LineString

classic Classic list List threaded Threaded
1 message Options
marcoma9023 marcoma9023
Reply | Threaded
Open this post in threaded view
|

ScreenSpaceLayout (Declutter) -> LineString

Hi,

I'm trying to include the declutter engine for my models's label.

Now each label it's composed by:

- LabelNode

- FeatureNode, composed by Feature and LineString, that connects the model to the label.

Then, using the ScreenSpaceLayout engine, I obtain the desidered behaviour.

Then problem is that, when the label going hide, the line remain visible.

I tryied to set:

osgEarth::ScreenSpaceLayout layout;

layout.activate(line->getOrCreateStateSet());

where the line is the FeatureNode, but in this case, all lines disappear!