Skip to main content

vScriptValPerlin3Noise

Replaces every number of an array with a Perlin or fractal noise value.

IntermediateMograph / ScriptValScriptValArrayJSON
vScriptValPerlin3Noise node

vScriptValPerlin3Noise takes an array of points and outputs a noise value for each coordinate. Time, Frequency and Scale shape the noise, and Noise Type switches to a fractal sum.

Parameters​

ParameterTypeDefaultDescription
InputDATATYPE—Points whose coordinates are replaced by noise.
Noise TypeDropdownPerlinPerlin (default) or Fractal.
TimeFloat1Added to the lookup coordinate. Slider -10 to 10, default 1.
FrequencyFloat1Multiplies each value before the lookup. Slider 0 to 100, default 1.
ScaleFloat1Multiplies the noise. Slider 0 to 10, default 1.
+3 more parameters
ParameterTypeDefaultDescription
OctavesFloat1Number of noise layers in Fractal mode. Minimum 1, slider 1 to 10, default 1. Hidden for Perlin.
PersistenceFloat0.5Weight multiplier per layer in Fractal mode. Range 0 and up, slider 0 to 1, default 0.5. Hidden for Perlin.
Show InputInteger1.0Shows the Frequency, Scale and Time input ports when on (default).
Read the full description

Each coordinate v of each input point is replaced by noise(v * Frequency + Time) * Scale, so the output holds noise values and not the original positions. The noise is sampled along the diagonal of the noise grid, with the same value on both lookup axes. With Time 1 and whole-number coordinates the lookup falls on grid points where Perlin noise is 0.

Fractal adds Octaves of the noise, each with twice the frequency and Persistence times the weight of the one before, divided by the total weight. Octaves and Persistence are hidden for Perlin. Every output point has as many values as its input point, in all three families.

Show Input exposes the Frequency, Scale and Time ports on the node.

Example Connections​

vScriptValPointsOnGrid.Output -> vScriptValPerlin3Noise.Input
vScriptValPerlin3Noise.Output -> vScriptValCameraProjection.ArrayA
vScriptValCameraProjection.Output -> vScriptValShapeRender.ArrayPoint
Background.Output -> vScriptValShapeRender.Input