Is it possible to access z-values on a height map on a pixel by pixel basis using scripting?
I have a terrain height map loaded in, and I have some math formulas I'd like to apply to it (to alter it for a game level environment) is it possible for me to use the scripting capability in GM and read, manipulate and write back modified height values at pixel level.
Comments
-
You would need to use Python scripting to get access at the pixel level as the traditional GM scripting does support that type of access. You can run Python scripts right in the GM Script Editor.
See https://www.bluemarblegeo.com/knowledgebase/global-mapper-python/Reference.html#raster-elevation-layer-query-functions for the GetPixelElevation / GetLocationElevation functions in GM Python to get at individual pixel values.
Thanks,
Mike
Global Mapper Guru
-
Thanks Mike, I will give that a try.
Categories
- 13K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website
