Jerker wrote:
if I leave the "use Custom Texture Set" option unchecked in the export dialogue, TransDEM will make use of the built-in mapping for the Topographic set?
Correct. These mappings translate a colour RGB value to a texture KUID. If you don't set a custom mapping, TransDEM will map to the 20 KUIDs of the TransDEM standard ground texture set.
I adopted the mapping mechanics from HOG, including the mapping file format (I did not reinvent the wheel there).
I don't know how HOG actually applied the mapping. TransDEM delegates this to an octree, one of those stunning algorithms in computer science, which are rather simple to implement but amazingly powerful and efficient in their functionality. Basically, an octree is a binary tree with three dimensions (hence the name, 2^3 = 8), one dimension for each of the primary colours red, green and blue. For each colour given, the octree finds the entry in its tree closest to that colour and returns the associated KUID. The octree algorithm also implements a creation strategy. When you feed it with a large number of colour samples, it will create a colour palette optimized for those samples. The standard TransDEM texture set is optimized for cartography where you have very few colours and only need a small palette. It won't work well for orthoimages, though.
For orthoimages I created that custom set. I illustrated its making in this older post which you possibly remember:
viewtopic.php?p=1518#p1518