Skip to main content

Terrain Splines

RustEdit Pro

A terrain spline changes the terrain along its line or inside it: it flattens a bed for a road, raises a ridge, cuts a canyon, levels an area or paints it. The change stays live. Move a knot and the terrain follows when you let go of the mouse button; delete the spline and the change goes away.

A Road Bed terrain spline cutting a flat bed through snowy hills

Before you start​

  • You need RustEdit Pro or higher. Without it, the terrain types are not in the type dropdown, the settings of terrain splines in a scene cannot be changed, and they do not change the terrain.
  • Know how to draw and edit splines. See Editing Splines.

How to shape the terrain with a spline​

  1. Make a spline entity and draw the line. For an area, close the spline.
  2. With the spline entity selected, click Terrain in the component buttons of the Inspector.
  3. In the Splines table, pick a Type in the spline's row: Road Bed, Ridge / Canyon, Shape Area, Paint Area or Graph Profile. The terrain changes at once. Graph Profile first needs a profile: see Spline Profile.
  4. Click the row, and set the options in its Settings tab. The line at the top says what the type does.
  5. Move knots to adjust the shape. The terrain is built again after each change.

One spline entity can have several terrain splines, each with its own type.

The types​

TypeWhat it doesStarts with
Road BedThe ground along the line goes to the line's height. Move the knots up or down to shape it.Width 12, Falloff 15
Ridge / CanyonRaises the ground along the line by the amount, or lowers it with a negative amount. The Profile curve shapes it from the middle to the edge.Width 80, Falloff 20, Amount 20
Shape AreaThe ground inside the closed line goes level, at the line's average height plus the level.Falloff 20
Paint AreaPaints the inside of the closed line.Falloff 5, Splat Dirt
Graph ProfileChanges the ground beside the line by a spline profile, a node graph you build. It has its own rows: see Spline Profile.Width 10, Reach 30

Options​

The rows depend on the type.

OptionTypesWhat it does
ApplyAllThe spline changes the terrain. It is on for a new spline. It is off on splines from an exported map, because that terrain has the change already.
WidthRoad Bed, Ridge / CanyonThe full width of the line in meters.
FalloffAllHow far past the edge the change eases out, in meters.
OffsetRoad BedMeters over (or under) the line the ground goes to.
AmountRidge / CanyonMeters the ground is raised in the middle. Negative lowers it.
LevelShape AreaMeters over (or under) the line's average height the inside goes to.
OpacityAllHow much of the change is made, 0 to 1.
ProfileRidge / CanyonA curve: the shape across the line, from its middle (left) to its edge (right).
SplatAllThe ground texture painted along the line or inside the area. None paints no splat.
BiomeAllThe biome painted along the line or inside the area: Arid, Temperate, Tundra or Arctic. None paints no biome. Jungle is not in the list.
TopologyAllThe topology added along the line or inside the area.

The default Profile curve is full at the middle and eases to nothing at the edge. Edit the curve for a flat top, a steep wall or a V shape.

How it works with other terrain changes​

  • Terrain splines are applied after your terrain edits, the terrain changes of placed prefabs and the terrain modifiers of roads, rivers and rails. Where a terrain spline works at full strength, it decides the result.
  • The spline's knots set the height. Hold Ctrl while you drag a knot to put it on the current ground.
  • When you export the map, the exported terrain includes the changes of every terrain spline with Apply on.
  • The terrain splines themselves are saved in the scene, and in RustEdit's data in a map exported with In RustEdit data, so they stay editable. With In the map, only their changes to the terrain are exported.

When you open an exported map, its terrain splines come back with Apply off. The map's terrain already has their changes, so RustEdit does not make them a second time. Turn Apply on only for a spline whose change is not in the terrain.

tip

To go on working on the terrain splines, open the scene file, not the exported map. The scene file keeps Apply as you set it.

tip

A Road path has its own terrain modifiers, Rust's bed for a road. For a different shape, draw a Road Bed along the road, in a second spline entity with Terrain picked in the component buttons.

Undo​

Changes to the knots are undo steps, and the terrain follows the undo. Changes in the Inspector are undo steps too: the type, the options rows and the component buttons.

Use your splines in a terrain graph​

The terrain graph's Spline Mask node turns the map's splines into a mask and a height. It can take all splines, one Rust path type, the terrain splines, the prefab splines, or the splines without a type. See Terrain Graph Nodes.