Allow 'CreateGroundFromHeightMap' to accept internal image data
I am working on a 'Height Map' editor. Taking data from the game's hardness map and internal data structures, I'm compiling the height map at runtime.
The way things are at present I need to save the canvas to file to the server, and re-download it. A bit counter productive... ;o)
Just a thought.
Thanks David, I'll take a look.
If you look at the code here:
you can then use this function to achieve your goal by loading your buffer instead of loading a picture: