Documentation / Node reference / code nodes
code/SDFKaleidoscopicIFS
The distance to a kaleidoscopic IFS fractal.
Sdf3d
Returns the signed distance from a sampled position to a kaleidoscopic fractal: space folded by the mirrors of a regular solid, as in a kaleidoscope, then scaled away from one point, over and over. With the defaults it is a Sierpinski tetrahedron. The twin of geo/SDFKaleidoscopicIFS, for use inside a geo/SDFBuilder sub-network.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector3 | Position to sample the field at. Left unwired it reads the builder's own sample position. |
| t | Vector3 | Center of the fractal. |
| size | Float | Radius of the ball the fractal fits inside. |
| symmetry | UInt8 TETRAHEDRAL · OCTAHEDRAL · ICOSAHEDRAL | The regular solid whose mirrors fold space: a tetrahedron, an octahedron (or cube), or an icosahedron (or dodecahedron). |
| scale | Float | How much each level is scaled away from the offset point. 2 halves the copies at each level; larger values leave more space between them. |
| offset | Vector3 | The point each level is scaled away from, as weights on three directions of the symmetry: an edge middle, a corner, and a face middle. The default, all on the corner, gives the Sierpinski shapes. |
| rotation | Vector3 | Angles, in degrees around X, then Y, then Z, that every level is turned by. Wire a time value into it for a morphing shape. |
| iterations | UInt8 | How many levels of copies are made. A wired value is capped at 32. |
See also
- geo/SDFKaleidoscopicIFS
- code/SDFMenger
- code/SDFBoolean
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.