Terrain node
hf_scatter
Scatter points on the terrain surface, weighted by a mask layer and limited by slope and height. Output points have P (on the surface), N (terrain normal), up (blend of +Y and N), orient (quaternion xyzw: random yaw around up), pscale, id, slope (degrees), and one float attrib per heightfield layer sampled at the point. Feed into copy_to_points or use 'forest'.
Inputs
- 0heightfield
Parameters 9
countintNumber of candidate points before mask/slope rejection (final count is lower where the mask is weak).
maskstringMask layer weighting the density (0..1). Empty = uniform.
slope_maxfloatNo points on slopes steeper than this (degrees).
height_rangevector 2Only scatter between these world heights.
min_distancefloatMinimum spacing between points (world units, 0 = off; approximate Poisson-disk thinning).
pscale_rangevector 2Random uniform pscale range.
align_to_normalfloat0 = 'up' is world +Y (trees), 1 = up follows the terrain normal (rocks, grass).
as_mesh_pointstoggleRemove the heightfield from the output (only points). Off keeps the heightfield too.
seedintRandom seed.
Use it
Add it from the node menu (right-click empty graph space or Tab, then type hf_scatter), ask the AI for it by name, or add it with a graph op from the API or MCP:
{"op":"add","type":"hf_scatter","name":"my_hf_scatter","params":{},"inputs":["src"]}Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.