Constructing the terrain