Reply To: Proper Format for Custom Height Color Map

Home Forums AR Sandbox Forum Proper Format for Custom Height Color Map Reply To: Proper Format for Custom Height Color Map

#102784
Oliver Kreylos
Keymaster

The first number in each line is the elevation, relative to the sandbox base plane, to which the following red, green, blue color triplet applies. All elevation values are in centimeters.

For example, the following color map file would create a solid blue color 10cm below the base plane, then smoothly change to white at the base plane, then to red at 10cm above the base plane:

-10.0 0 0 255
0.0 255 255 255
10.0 255 0 0

The elevation values do not have to be equidistant. You could insert a very thin green band, indicating, for example, a sedimentary layer, at 5cm elevation like so:

-10.0 0 0 255
0.0 255 255 255
4.9 255 128 128
4.9 0 255 0
5.1 0 255 0
5.1 255 128 128
10.0 255 0 0

(Repeating an elevation value, like 4.9 or 5.1 here, causes a discontinuous change in color.)

The only requirement is that the elevation numbers are monotonically increasing from the first to the last line.

Comments are closed.