Own elevation source for visualization

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

Own elevation source for visualization

Hi,
what should I implement to be able to use my own custom elevation map for elevation visualization in osgearth 2.10.2?

In other words: I have some elevation maps in non standard format. Which interfaces should I implement to successfully use those map as elevation visualization?  

~Kris
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Own elevation source for visualization

Hello Kris,

In osgEarth 2.x you would need to create a new plugin for your format. You can follow the pattern used by any of the built-in plugins, this one is a fairly simple example:

https://github.com/gwaldron/osgearth/tree/2.10/src/osgEarthDrivers/xyz

The "createHeightField" method does most of the work.

In osgEarth 3.0+, the process is different. I recommend you use 3.0 if you can, but if not, follow the pattern above.

Hope this helps
Glenn Waldron / Pelican Mapping
krzysief krzysief
Reply | Threaded
Open this post in threaded view
|

Re: Own elevation source for visualization

thank you Glenn, how would the process look on osgearth 3+?

~Kris
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Own elevation source for visualization