Creating normal maps from elevation data using the SDK
Hi,
I was wondering if there is an easy way to create normal maps using the SDK and standard elevation data. Otherwise there is a hard way of sampling each pixel for the normal map resolution and then doing the math but that's going to be a pain. Any ideas welcome.
Cheers,
Pascal
I was wondering if there is an easy way to create normal maps using the SDK and standard elevation data. Otherwise there is a hard way of sampling each pixel for the normal map resolution and then doing the math but that's going to be a pain. Any ideas welcome.
Cheers,
Pascal
Comments
-
Pascal,
I'm not entirely sure what you mean by 'normal' maps? You can easily sample the elevation values from loaded elevation data using the GM_GetPixelElevation and GM_GetLocationElevation functions. If you want to create your own custom elevation layer from your own in-memory array of elevation values you can do that using the GM_CreateCustomElevGridLayer function.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
-
-
Ah, if that is what they want, then no, there is not a direct way to create those. They could of course use GM_GetPixelElevation to calculate surface normals at each location in a loaded file, then save those out however they see fit.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Hi,
I was wondering if there is an easy way to create normal maps using the SDK and standard elevation data. Otherwise there is a hard way of sampling each pixel for the normal map resolution and then doing the math but that's going to be a pain. Any ideas welcome.
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 182 Announcement and News
- 943 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 581 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 245 How I use Global Mapper
- 111 Global Mapper Forum Website
