I am creating my Heigtmap pre-game and want to load them into a terrain. Currently the only way I can do this is to save my Heightmap to a .bmp file then use LoadTerrain on it. Is there a simple method to apply my randomly generated Heightmap to a terrain without save/loading or reading each pixel of the heightmap image and altering each corrisponding terrain Y point?
If I use LoadTerrain(HeightMap) I get "failure to load heigtmap" error. The heightmap is there (i've displayed it out to screen and saved it to file directly prior to trying to load it into the terrain) so its not simply a null return error.
If I use LoadTerrain(HeightMap) I get "failure to load heigtmap" error. The heightmap is there (i've displayed it out to screen and saved it to file directly prior to trying to load it into the terrain) so its not simply a null return error.