MAKE TERRAIN This command will create a new terrain object using the specified Heightmap file.
Syntax
    MAKE TERRAIN Terrain Number, Heightmap Filename
Parameters
    Terrain Number
Integer The terrain number
    Heightmap Filename
String The heightmap name string
Returns
This command does not return a value.
Description
A heightmap file is a simple image file that contains a greyscale representation of the landscape heights. The image file must contain an image with identical width and height, and ideally be a resolution equal or greater than 256 colours. Additional parameters control the size and detail of the terrain.
Example Code
    make terrain 1,"land.bmp"

    position terrain 1, 0, 0, 1025

    load image "grass.bmp",1

    texture terrain 1,1

    set cursor 0,0

    print "TERRAIN DATA"

    print " exist:";terrain exist(TerrainNumber)

    if terrain exist(1)=1

    print " x:";terrain position x(1)

    print " y:";terrain position y(1)

    print " z:";terrain position z(1)

    print " height:";get terrain height(1, 1.0,1.0)

    print " totalheight:";get total terrain height(1)

    endif

    do

    loop

    delete terrain 1
See also
WORLD Commands Menu Index