If the input heightmap has heights greater than 255, it can't fit in the game. There should be several options for how to deal with this: - No scaling (clipping) - Linear scaling - Logarithmic scaling