noise VEX function

There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

See also: pnoise

  1. float noise(float x)

  2. vector noise(float x)

  3. float noise(vector xyz)

  4. vector noise(vector xyz)

  5. float noise(vector4 xyzt)

  6. vector noise(vector4 xyzt)

  7. float noise(float x, float y)

  8. vector noise(float x, float y)

There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space.

Note

This function generates non-periodic noise. Use the pnoise function to generate periodic Perlin noise.

The various functions return the noise value at a 4D (vector4 argument), 3D (vector argument), 2D (two float arguments) or 1D (float argument) position. You can get a random float value or a vector of three random values.

The noise is in the range 0-1 with a median of 0.5. The distribution of the noise depends on the dimension, with higher dimensions approaching a Gaussian distribution of noise values.

See noise and randomness in the VEX language guide for more information.