Draw ImageLayer on top of Draped Layers

classic Classic list List threaded Threaded
4 messages Options
JD JD
Reply | Threaded
Open this post in threaded view
|

Draw ImageLayer on top of Draped Layers

Hi,

I need to render my osgearth scene so that draped layers are drawn first, and then the image layers are drawn on top of it.

Is that possible?
If not, can you provide hints about how i can code it please?

Thank you,
JD
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Draw ImageLayer on top of Draped Layers

A draped layer needs something to drape on, so you'd have to put a "real" layer at the bottom, and then set accept_draping="false" on the top layer(s). Like:

<map>
   <contourmap/>
   <featuremodel ... [this is the draped layer] />
   <tmsimage ... accept_draping="false"/>
</map>

The "accept_draping" property is only found in the master branch.
Glenn Waldron / Pelican Mapping
JD JD
Reply | Threaded
Open this post in threaded view
|

Re: Draw ImageLayer on top of Draped Layers

Thank you.
Is there also a way to insert a image layer between 2 draped feature layers?

For exemple :
I have a Land feature layer at render order 10 and a country boundaries layer on top of it at render order 20. (Both draped)
Now i want to insert a raster meteorological layer between them (at render order 15).

Is that possible ?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Draw ImageLayer on top of Draped Layers

That is not possible at this time, sorry.
Glenn Waldron / Pelican Mapping