Skip to content

Building terrain

The ground of a level is a heightmap: a square grid of heights. Terrano builds it from a stack of nodes under the Terrain root:

  • Generators make height: noise, cells, ramps, a constant.
  • Filters reshape the height they receive: smoothing, terraces, clipping and more.
  • Erosion carves valleys, gullies and scree slopes the way water and gravity would.
  • Strata, Slump and Flow Warp add rock layers, landslides and feathered channels.
  • Masks limit any of these to part of the map.

The editor with a terrain stack: the nodes on the left, the 3D and 2D views in the middle, the selected generator’s settings on the right

This section covers only the land itself. Water, roads, settlements, foliage and ground cover work on the finished terrain and have their own pages in the node reference.

Every node takes the heightmap from the node before it, changes it and passes it on. The tree is processed from top to bottom, so a typical stack goes from the largest shapes to the smallest, with the filters last:

Terrain
├─ Generator: Broad Hills ← the overall shape
├─ Generator: Ridges ← mountains on top of it
├─ Generator: Fine Detail ← small bumps
└─ Filter: Erosion ← erodes all three

The same stack built up one node at a time

Add a node with the Add button over the Component Browser, or right-click a node → Add: the new node goes under the selected one. Drag nodes to reorder them, and untick a node’s checkbox to see the terrain without it. Only the edited node and the nodes after it are recomputed, so changing the last filter of a long stack is quick.

A node’s children run after it, as the next layers of the stack. Under a Mask they apply only inside the mask.

Select Terrain at the top of the tree to set up the map.

The Terrain root’s settings

Setting
Size The edge length of the square map in metres. BeamNG levels are commonly 1024, 2048 or 4096 m.
Resolution The editor’s heightmap grid: 512, 1024, 2048 or 4096 points along each edge.
Base Height The height in metres the stack starts from, before the first node.

Every distance in the nodes is in metres (a generator’s Scale, a blur, an erosion’s debris depth), so changing the Resolution keeps the same shapes, only sharper or coarser. The point spacing is Size / (Resolution − 1): 3.9 m for a 2 km map at 512, 1 m at 2048.

The same eroded mountains at Resolution 512, 1024 and 2048

View Shows
3D Scene: Editor A quick grey shaded view. The selected mask is tinted red over it.
3D Scene: Real The terrain as BeamNG renders it, with the level’s terrain material, sun, sky and fog.
2D Heightmap The heightmap from above in greys (black at -50 m, white at 250 m). With a mask selected it shows the mask instead: white inside, black outside.

Press F to fit the terrain in the views. The pictures in this section were taken in the Real view, on plain grass, so the shapes are easy to compare.

  1. File → New Project, then select Terrain and set Size 2000 and Resolution 512.
  2. Add a Generator. It starts as Perlin Noise: set Scale 800 and Amplitude 110 for broad hills.
  3. Add a second Generator, set Perlin Style to Ridged, Scale 350 and Amplitude 70: mountains on the hills.
  4. Add a third, of Type Simplex Noise, with Scale 90 and Amplitude 6: fine detail.
  5. Add a Filter. It starts as Erosion: after a few seconds valleys, gullies and scree appear.
  6. Change the Seed of the first generator to try other landscapes with the same character.

The next pages go through each node with pictures. Every setting is listed in the node reference: Terrain, Generator, Filter and Mask.