Terrain node
hf_project
Stamp input-1 geometry into the heightfield: curves (open polylines, e.g. from a curve or line node) flatten roads, raise ridges, lower ditches or carve rivers with a smooth falloff; polygons/meshes are rasterised for mesh_* modes (stamp a plateau, a crater mesh, building pads). Closed polygons are treated as curves (their outline) in the curve modes. Writes 'height' and the 'project' mask.
Inputs
- 0heightfield
- 1curves or mesh
Parameters 8
modemenuflatten: blend terrain to the curve's height inside 'width' (roads, embankments). raise/lower: add/subtract 'amount' along curves (ridges, ditches). carve: cut a channel 'amount' deep below the curve/terrain (rivers). mesh_*: rasterise input-1 polygons (max = stamp a mesh onto the terrain, min = dig, replace = set).
widthfloatFull width of the fully affected core along curves (world units).
fallofffloatWidth of the smooth shoulder on each side of the core.
amountfloatHeight change for raise/lower/carve in world units.
follow_terraintoggleCurve heights come from the terrain (sampled along the curve and smoothed) instead of the curve's own Y. Use for roads drawn flat at y=0.
smooth_lengthfloatWith follow_terrain: smoothing window (world units) of the road/river grade along the curve.
height_offsetfloatAdded to the target curve height (e.g. raise a road embankment).
mask_layerstringLayer receiving the 0..1 footprint of the projection (use it to colour roads or keep trees off them). Empty = none.
Use it
Add it from the node menu (right-click empty graph space or Tab, then type hf_project), ask the AI for it by name, or add it with a graph op from the API or MCP:
{"op":"add","type":"hf_project","name":"my_hf_project","params":{},"inputs":["src"]}Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.