Divooka Reference

Noise

3 nodes

On this page 3

Maximum Octaves

Function

The most octaves a Fractal Noise sums, so a mistyped count cannot keep the GPU busy forever.

Signature
MaximumOctaves() -> Integer
int MaximumOctaves()

Returns

resultInteger
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Noise
Package
GPU Kernels

Fractal Noise

Function

Sums a pattern at finer and finer scales, each octave smaller and fainter than the last - fractal Brownian motion. The pattern is the Function graph named on Noise, read at the point, or a smooth value noise when none is named.

Signature
FractalNoise -> Number
    UV: Vector 2D
    noise: Func<Vector 2D, Number>
    octaves: Integer
    amplitude: Number
    frequencyMultiplier: Number
    amplitudeMultiplier: Number
    size: Number
double FractalNoise(
    Vector2D uv,
    Func<Vector2D, double> noise,
    int octaves = 4,
    double amplitude = 0.5,
    double frequencyMultiplier = 2,
    double amplitudeMultiplier = 0.5,
    double size = 1)

Parameters

nametypedefaultdescription
UVVector 2D—The point.
noiseFunc<Vector 2D, Number>—The pattern to repeat: one of the document's Function graphs taking a point and answering a number. Smooth value noise when left empty.
octavesInteger4How many scales are summed, up to 32.
amplitudeNumber0.5How strongly the first octave counts.
frequencyMultiplierNumber2How much finer each octave is than the one before.
amplitudeMultiplierNumber0.5How much fainter each octave is than the one before.
sizeNumber1How large the first octave is.

Returns

ValueNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Noise
Package
GPU Kernels

Value Noise

Function

Smooth noise from -1 to 1: a random value at every whole point, blended smoothly between them.

Signature
ValueNoise(UV: Vector 2D) -> Number
double ValueNoise(Vector2D uv)

Parameters

nametypedefaultdescription
UVVector 2D—The point; one unit is one cell of the noise.

Returns

ValueNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Noise
Package
GPU Kernels