Building node

road

Sweep a road cross-section along a curve (input 0: the first polyline/polygon; without input a default S-curve is used): asphalt slab, raised sidewalks with curbs on both sides, and painted lane markings. If input 1 carries a heightfield the road follows the (smoothed) terrain height - combine with hf_project mode=flatten on the same curve to cut the road into the terrain. Output prim attribs material (road, sidewalk, marking), name, Cd.

Inputs

Parameters 11

lanesint
Default 2Range 1 to 8

Number of traffic lanes.

lane_widthfloat
Default 3.5Range 1 to …

Lane width (m).

sidewalk_widthfloat
Default 2.5Range 0 to …

Sidewalk width on each side (0 = no sidewalks).

curb_heightfloat
Default 0.15Range 0 to …

Sidewalk height above the road surface.

thicknessfloat
Default 0.4Range 0.01 to …

Road slab thickness (visible on embankments).

stepfloat
Default 2Range 0.1 to …

Resampling distance along the curve (m); smaller = smoother curves.

markingstoggle
Default on

Paint lane markings: dashed lane separators, solid edge lines.

dash_lengthfloat
Default 3Range 0.1 to …

Dash length (m); gap is twice this.

height_offsetfloat
Default 0.2

With a heightfield on input 1: road surface height above the smoothed terrain.

translatevector 3
Default [0, 0, 0]

Position of the generated asset

rotate_yfloat
Default 0

Rotation around Y in degrees

Use it

Add it from the node menu (right-click empty graph space or Tab, then type road), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"road","name":"my_road","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.