Simstim

VEX Dictionary / noise

noise

Smooth Perlin-style noise from a position, centred around 0.5.

group: noisenoise

Available in every context

Usage

float noise(float pos)
vector noise(float pos)
float noise(float posx, float posy)
vector noise(float posx, float posy)
float noise(vector pos)
vector noise(vector pos)
float noise(vector4 pos)
vector noise(vector4 pos)

Examples

Displace along normals sop
// Needs point normals (add a Normal SOP upstream)
float n = noise(@P * chf("freq")) - 0.5;
@P += @N * n * chf("amp");

noise returns values centred around 0.5. Subtracting 0.5 lets the surface push both in and out. For zero-centred noise from the start, use snoise.

Use cases

Signatures (from vcc -X)

Related

Full SideFX documentation ↗