042] Global Mapper - Changing Elevation Colors : Custom Shader
Today, we will learn how to change the Shader to your desired colors using familiar elevation data.
I am providing a suitable elevation dataset for this tutorial, so it is recommended to use the attached file.
Attachment: 042-Custom Shader.zip
(This is a safe proprietary data file for Global Mapper.)
The compressed file contains DEM data and a .prj file. Open the DEM data in Global Mapper.
It should be loaded as shown above. The currently applied shader is the Atlas Shader.
Now, let’s add a new shader according to your preference.
Click on the Shader list box and select "Add Custom Shader...". The Custom Shader window will appear.
Name: Enter a name for the shader you want to register.
By entering the altitude in the Height/Slope field under New Height/Slope Entry and clicking Add, you can specify a color for that specific elevation. By repeatedly specifying desired elevations and colors and clicking OK, a new shader will be registered.
Blend Colors Between Elevation/Slope Values: This option allows you to choose whether to apply a gradient transition between each color.
Manually entering every elevation and color value can be quite tedious. Therefore, it is much more convenient to use a pre-saved color scale file.
Attachment: ColorScales.zip
(This is a safe proprietary data file for Global Mapper.)
A .clr file is a color scale file created in Surfer, a program by Golden Software used for terrain analysis and representation.
When you extract the attached files, you will find various types of .clr files. Click on "Initialize From Surfer CLR File...", navigate to the extracted folder, and open the BATHYMETRY_WARM.clr file.
The color scale has now been loaded into the Custom Shader window.
If you look closely, the current terrain has an elevation range of approximately 158m to 600m, but the loaded .clr color values are only applied from 0m to 100m.
In this case, check the "Scale Shader to Loaded Elevation Values" option. If the elevation range of the specified shader differs from the actual terrain, this will match the first and last colors of the .clr file to the minimum and maximum elevations of your current data. Let's click OK.
As you can see, the newly imported .clr file has been successfully applied.
If you wish to modify the .clr file settings:
Select "Shader Options..." from the list.
The Configuration - Shader Options window will appear. Verify that BATHYMETRY_WARM is selected and click the Edit button.
This will bring up the Custom Shader window we saw earlier. To change elevation or color values, select the desired item from the list, click Change Color... or Change Value..., modify the data, and click OK.
The process is a bit detailed, but this is how Global Mapper allows you to customize shader colors.
That's all for today!
■ Chapter 5: Styling, Labeling & Visualization
[038] Styling Features: Style - Area
[039] Styling Objects: Style - Line
[040] Customizing Objects: Style - Point
[041] Label
[042] Changing Elevation Colors : Custom Shader
Comments
Post a Comment
Feel free to leave a comment if you have any questions about Global Mapper or CityEngine. I will get back to you with a sincere response as soon as possible. (Please note that all comments are moderated and manually approved to maintain a high-quality community. Promotional or spam content will not be published.)