Terrain Draping

classic Classic list List threaded Threaded
2 messages Options
davidip davidip
Reply | Threaded
Open this post in threaded view
|

Terrain Draping

I use "gdal" driver to create elevation data and "osg" driver to create an image layer. The image layer drapes on to the terrain. I have two questions.

Q1. Is there a way to disable/enable draping?
Q2. Now I have an osg::Texture2D object, can it be draped on the terrain? How?

Thanks.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Terrain Draping

No, you cannot disable draping of an image layer. I am not even sure what that would mean :)

You can use the ImageOverlay class -- but you will need an osg::Image, not a texture.

Glenn Waldron / Pelican Mapping