LoadTerrain
Loads a terrain from a heightmap.
LoadTerrain ( heightmap_file$[,parent] )
Parameters
- heightmap_file$
- the picture file, usually greyscale.
- parent (optional)
- an entity to attach it to, or 0 for none.
Description
Creates a terrain from a picture and gives back its handle, or 0 if it can't be loaded. Each pixel is a grid point; dark pixels are low and bright ones high. The picture's size sets the terrain's.
