Loading a heightmap

BlitzMax Forums/BlitzMax Beginners Area/Loading a heightmap



I made my heightmap (for testing purpose) in paint and saved it as a bitmap




You can do that. You just need write import code that 'knows' how you're mapping colours to heights. My example uses the red colour component. 0 = low, 255 = high. So any colour you draw with should be chosen accordingly.