Road Editor

The Road Editor is used to create decal-based roads on your terrain. A decal-based road follows every contour of the terrain, unlike a Mesh Road which is a solid 3D object. To create more complicated roads that rise above the terrain, span hills, or contain bridges use the Mesh Road Editor. The Road Editor is a built-in WYSIWYG (What-You-See-Is-What-You-Get) editing tool which provides near real-time feedback so that you can see the changes and additions as you make them.

To access the Road Editor, activate it from the main menu of the World Editor by selecting Tools > Road Tool in the main menu or the main toolbar:

../_images/roadEditorToolbarBtn.jpg

Create Mode

Create mode can be activated by holding the Alt key down and clicking in the viewport to add nodes. Create mode is used for adding new roads or adding nodes to existing roads.

Adding Roads

By clicking on a point on the terrain with no road while holding down the Alt key down, the first node of a new road is created and the road is selected. By clicking on additional points on the terrain while holding down the Alt key down, more nodes can be added to the road (see Adding Nodes to Roads).

Selecting Roads

Roads that the cursor is hovering over are shown with a blue outline. lmb selects a hovered road. When multiple roads are on top of each other at the position of the cursor, one road is outlined with a deep blue, while the others are outlined with a lighter blue (see screenshot). This shows which road will be selected on a lmb. The hovered roads can be cycled through by turning the mouse wheel.

../_images/roadHighlight.jpg

Once a road is selected, its outlines turn green and the nodes of the road are shown as red spheres. Also all the parameters of the road can be viewed and edited in the Inspector window of the editor, just like any other object.

Nodes

Nodes are the spline points of a road and contain a position and a width.

Adding Nodes to Roads

Holding down the Alt key down while mouse hovering on top of the selected road and then lmb clicking inserts a new node in the road at this position. lmb clicking outside of a selected road while holding down the Alt key creates a new node on that position that gets added to the end of the road. A node can be added before the first node by selecting the node at the beginning and then adding a node. Holding down lmb instead of clicking normally allows you to change the width of a created node by moving the cursor horizontally and releasing the mouse button at the desired width.

Removing Nodes

A node is removed by selecting it and then pressing the Delete key.

Node Properties

With a node selected, you can change the position and width of it in the Inspector window.

Other features

Width Override

With a road selected, you can select “Width Override” in the Inspector window to set the width of all nodes in this road to a certain value.

Splitting road

With a node selected, there is a button in the Inspector window “Split Road” with which the road is split into two roads at the position of the selected node.

Shortcuts

Shortcut Function
Alt + lmb Create road / Add node
Delete Delete selected road or node
Ctrl + C Copy fields of road
Ctrl + V Paste fields to road
Mousewheel Cycle through hovered roads

Settings

Setting Description
Default Width The default width a newly created road starts with.