Quantcast

Decluttering set true cause placenode can not be hightlighted

classic Classic list List threaded Threaded
2 messages Options
yiziai yiziai
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Decluttering set true cause placenode can not be hightlighted

one:

when i code as followed :
        Decluttering::setEnabled( labelGroup->getOrCreateStateSet(), true ),

then the added placenode can not be hightlighted with code
        DecorationInstaller highlightInstaller("hover", new HighlightDecoration());
        labelGroup->accept( highlightInstaller );


seconde:
 
when i add Extrusion builds to mapnode, the mapnode's RectangleNode will flicker with pan or rotate action.

i don't kown how to slove it, my osgearth version is 2.7

thanks for any hint!
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Decluttering set true cause placenode can not be hightlighted

The whole Decoration framework is deprecated in newer versions of osgEarth; instead you would need to perform hightlighting using a shader (as demonstrated in osgearth_pick.cpp).

Wish I could be more help!
Glenn Waldron / Pelican Mapping
Loading...