TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class Tinman.Noise.Scalar.Cellular

Short Name:
  • class Cellular
Derived From:
Fields:
  • optional b0
  • optional b1
  • optional b2
  • optional b3
  • optional a0
  • optional a1
  • optional a2
  • optional a3
  • optional c

A cellular noise function.

The noise value is computed using the distances of the given point to the four nearest feature points by combining them according to the specified coefficients:

result := (a0 * f0 + b0) * f0
        + (a1 * f1 + b1) * f1
        + (a2 * f2 + b2) * f2
        + (a3 * f3 + b3) * f3 + c

f0      := distance to 1st nearest feature point
f1      := distance to 2nd nearest feature point
f2      := distance to 3rd nearest feature point
f3      := distance to 4th nearest feature point

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
optional b0 number  
1

Cellular noise coefficient (see remarks).

optional b1 number  
0

Cellular noise coefficient (see remarks).

optional b2 number  
0

Cellular noise coefficient (see remarks).

optional b3 number  
0

Cellular noise coefficient (see remarks).

optional a0 number  
0

Cellular noise coefficient (see remarks).

optional a1 number  
0

Cellular noise coefficient (see remarks).

optional a2 number  
0

Cellular noise coefficient (see remarks).

optional a3 number  
0

Cellular noise coefficient (see remarks).

optional c number  
0

Cellular noise coefficient (see remarks).