Slope shader options - Shader Custom Color
The (Get/Set)ShaderOptions methods can be used to set the properties for the in-built Slope Shader. However, only the Minimum and Maximum Slope values and colors can be set. I was wondering if there was a way for me to set the Slope Shader to use a custom color between minimum and maximum slope instead of gradated and also to set the custom color to use.
Thanks in advance and season's greetings in advance as well.
Thanks in advance and season's greetings in advance as well.
Comments
-
I have updated the GM_ShaderOptions_t to include new members for the custom slope shader color. There is a new SDK build at http://www.globalmapper.com/GlobalMapperSDK_v135_beta.zip with this support.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Is there a way to access the Slope layer that is generated when Slope shader is chosen for elevation grid layers? Or is there a method that can be used to generate a slope layer from a terrain layer?
Like GM_LayerHandle_t32 GenerateSlopeLayer(GM_LayerHandle_t32 layerHandle);
Thanks -
Currently there isn't a way to directly access the slope values, but if you export using GM_ExportElevation with the GM_Export_Float_Grid format and pass in the GM_ExportFlags_ExportSlopeValues flag then you will get a Float/Grid file with the slope values. You could then load that back in to access it as slope values.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website