Seen from above at Y 0, 768 × 256 blocks

Terrain

Jittered Cell Field 2D

Measures distance relationships to deterministic jittered 2D cell points.

density.jittered_mesh_2d

Jittered Cell Field 2DSeed1Point Y0.0Scale X64.0Scale Z64.0Jitter0.5Max distance128.0Distance metricEuclidean ⏷OutputDistance ⏷

In 3D

The same output in relief: each value becomes a height, coloured like the map above. Drag to look around.

Drag to look around · 256 × 256 blocks

Inputs and outputs

NameTypeDefaultWhat it changes
Inputs
SeedInteger1
Point YReal0.0
Scale XReal64.0 · > 0
Scale ZReal64.0 · > 0
JitterReal0.5 · 0–0.5
Max distanceReal128.0 · > 0
Settings
Distance metricChoiceEuclideanOne of: Euclidean, Manhattan.
OutputChoiceDistanceOne of: Raw Distance, Distance, Distance2, Distance2 Add, Distance2 Sub, Distance2 Mul, Distance2 Div.
Output
OutputDensity

Good to know

Sampling semantics

Points lie at pointY, but distance is measured in 3D, including the sample’s Y offset. To make the field independent of Y, wrap it in density.coordinate_override with axis=Y and value=pointY. jitter must be within [0, 0.5]. maxDistance bounds the point search; cell-value/relative-value variants return defaultValue when no point is found.

Distance outputs

For nearest distances F1 and F2, DISTANCE = 2F1/maxDistance - 1; DISTANCE2 = 2F2/maxDistance - 1; DISTANCE2_ADD = (F1+F2)/maxDistance - 1. RAW_DISTANCE returns F1 in blocks. Searches cap distances at maxDistance; when no point is found these three normalized outputs return 1.

More in Terrain