A sphere wired INTO a geo/SDFBuilder and roughened into a rock, by adding noise to the field code/SDFInput reads back.
code/SDFInput geo/SDFBuilder
Documentation / Node reference / geo nodes
Builds a signed-distance field from the code nodes inside it, from scratch or from an input field.
Sdf Operations
Dive inside and build the field with code/SDF* primitives and operators, wired into code/Output's distance input. The output object carries the field as SDF geometry: wire it to the geo/Output node to see it raymarched, or compose it with other SDF objects. With nothing on the input the bounds params declare where the surface lives, so keep them generous enough to contain it.
Wire an SDF object into the input and the node MODIFIES that field instead. code/SDFInput inside the sub-network reads it, at whatever position you hand it, which is what tells the three common shapes apart:
displace, `SDFInput(P) + amplitude * Noise(P)`, pushes the surface in and out;
domain warp, `SDFInput(P + amplitude * Noise(P))`, bends the shape itself;
blend, `SDFBoolean(SDFInput(P), SDFSphere(P))` on a smooth union, melts a primitive into it.
The bounds then come from the input, grown by the margin.
| Name | Type | What it does |
|---|---|---|
| size | Vector3 | Local-space size of the box the field's surface fits inside. Read only when nothing is wired into the input. |
| center | Vector3 | Local-space center of the bounds box. Read only when nothing is wired into the input. |
| boundsMargin | Float | How far the modified field may leave the input's own bounds, on every side. Raise it when a displace pushes the surface past the box and the peaks come out flat. |
Scenes you can open in the editor that teach this node.
A sphere wired INTO a geo/SDFBuilder and roughened into a rock, by adding noise to the field code/SDFInput reads back.
code/SDFInput geo/SDFBuilder
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.