Divooka Reference

Texture Noises

7 nodes

On this page 7

Anisotropic Noise

Function

Fractal noise stretched one way: different numbers of cells across and down, for grain, brushed metal, rain streaks and fibres.

Signature
AnisotropicNoise -> Texture
    basis: Noise Basis
    scaleX: Integer
    scaleY: Integer
    octaves: Integer
    roughness: Number
    seed: Integer
    size: Integer
Texture AnisotropicNoise(
    NoiseBasis basis = NoiseBasis.Perlin,
    int scaleX = 2,
    int scaleY = 32,
    int octaves = 5,
    double roughness = 0.5,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
basisNoise BasisPerlinWhat each octave is.
scaleXInteger2How many cells across.
scaleYInteger32How many cells down.
octavesInteger5How many octaves, from 1 to 12.
roughnessNumber0.5How strong each octave is relative to the one before.
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing

Cellular Noise

Function

Cellular (Worley) noise: the distance to scattered points, which draws cells. F1 is the distance to the nearest point (round pits), F2 to the second nearest, F2 minus F1 bright ridges along the borders; Edges is the true distance to the nearest border, even in width; Cell Value a flat random grey per cell.

Signature
CellularNoise -> Texture
    mode: Cellular Mode
    scale: Integer
    jitter: Number
    distance: Cell Distance
    seed: Integer
    size: Integer
Texture CellularNoise(
    CellularMode mode = CellularMode.F1,
    int scale = 8,
    double jitter = 1,
    CellDistance distance = CellDistance.Euclidean,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
modeCellular ModeF1What is measured.
scaleInteger8How many cells across the texture.
jitterNumber1How far each point strays from its cell's centre, 0 (a grid) to 1 (fully random).
distanceCell DistanceEuclideanHow distance is measured, which sets the cells' shapes.
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing

Flakes

Function

Metallic flakes: a normal map of tiny facets, each cell of a cellular pattern tilted its own random way - the sparkle of car paint, glitter, mica and galvanised steel. Flakes are often finer than any texture can hold, so seen up close they are evaluated where they are seen, and seen from afar they average out toward a flat surface instead of flickering.

Signature
Flakes -> (result: Texture, flakeRandom: Texture)
    scale: Integer
    tilt: Number
    coverage: Number
    seed: Integer
    size: Integer
Texture Flakes(
    out Texture flakeRandom,
    int scale = 256,
    double tilt = 0.35,
    double coverage = 1,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
scaleInteger256How many flakes across the texture.
tiltNumber0.35How far a flake may lean, 0 (flat) to 1 (on its edge).
coverageNumber1The share of the surface that is flakes, 0 to 1; the rest is flat binder.
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
flakeRandomTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing

Fractal Noise

Function

Several octaves of noise added together, each finer and fainter than the last: clouds, dirt, the irregularity of anything natural. Roughness sets how much the fine octaves show.

Signature
FractalNoise -> Texture
    basis: Noise Basis
    scale: Integer
    octaves: Integer
    roughness: Number
    seed: Integer
    size: Integer
Texture FractalNoise(
    NoiseBasis basis = NoiseBasis.Perlin,
    int scale = 4,
    int octaves = 6,
    double roughness = 0.5,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
basisNoise BasisPerlinWhat each octave is: Perlin (soft), Value (blocky), Ridged (sharp crests), Billow (sharp troughs) or Cellular (pebbles).
scaleInteger4How many cells across the texture in the first octave; larger is finer.
octavesInteger6How many octaves, from 1 to 12.
roughnessNumber0.5How strong each octave is relative to the one before, from 0 to 1; 0.5 is the classic cloud.
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing

Grain

Function

Gaussian-like grain built from several octaves of white noise blurred to different sizes: the even, fine speckle of sand, concrete aggregate or film grain.

Signature
Grain -> Texture
    grainSize: Number
    seed: Integer
    size: Integer
Texture Grain(
    double grainSize = 2,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
grainSizeNumber2The size of a grain, in pixels of a 1024-pixel texture.
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing

Perlin Noise

Function

Smooth gradient (Perlin) noise: one octave of soft hills.

Signature
PerlinNoise -> Texture
    scale: Integer
    seed: Integer
    size: Integer
Texture PerlinNoise(
    int scale = 8,
    int seed = 0,
    int size = 1024)

Parameters

nametypedefaultdescription
scaleInteger8How many cells across the texture; larger is finer.
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing

White Noise

Function

A different random value at every pixel, evenly spread from 0 to 1: the raw material of dithering, sparkle and grain.

Signature
WhiteNoise(seed: Integer, size: Integer) -> Texture
Texture WhiteNoise(int seed = 0, int size = 1024)

Parameters

nametypedefaultdescription
seedInteger0Which random pattern.
sizeInteger1024Width and height in pixels.

Returns

resultTexture
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Texture Noises
Package
Image Processing