Skip to main content

vJSONNoiseOnMesh

Displaces points with Perlin or fractal noise along the mesh normal or in 3D.

AdvancedMograph / JSONJSONArrayScriptVal
vJSONNoiseOnMesh node

vJSONNoiseOnMesh takes an array of XYZ points and a mesh, and adds a 3D gradient noise to each point. Noise Mode chooses between a move along the normal at the closest vertex and a 3D move that is snapped to the nearest mesh vertex.

Parameters​

ParameterTypeDefaultDescription
Noise ModeDropdownNormal OnlyNormal Only (default) or 3D Reproject. 3D Reproject outputs mesh vertices.
Noise TypeDropdownPerlinPerlin (default) or Fractal. The fractal controls are shown when Fractal is selected.
AmplitudeFloat0.1Size of the displacement. Slider 0 to 1, default 0.1.
FrequencyFloat1Multiplies the point position before the noise lookup. Minimum 0.0001, slider 0 to 10, default 1.
OctavesInteger4Number of noise layers in Fractal mode. Range 1 to 16, default 4. Hidden for Perlin.
+10 more parameters
ParameterTypeDefaultDescription
LacunarityFloat2Frequency multiplier per layer in Fractal mode. Minimum 1, default 2. Hidden for Perlin.
GainFloat0.5Weight multiplier per layer in Fractal mode. Range 0 to 1, default 0.5. Hidden for Perlin.
Animation SpeedFloat0Added to the noise lookup as this value times the render time. Slider 0 to 5, default 0.
Random SeedInteger0Integer from 0, slider to 100000, default 0. Changes the noise pattern.
Surface OffsetFloat0Distance from the vertex along its estimated normal. Slider -1 to 1, default 0.
Affect XFloat1X comes from the result when checked (default), otherwise it keeps the input value.
Affect YFloat1Y comes from the result when checked (default), otherwise it keeps the input value.
Affect ZFloat1Z comes from the result when checked (default), otherwise it keeps the input value.
PointsDATATYPE—Point positions.
Mesh PointsDATATYPE—Points of the mesh that the input is compared with.
Read the full description

The noise is sampled at the point position times Frequency plus Animation Speed times the render time, and scaled by Amplitude. Perlin gives one 3D gradient noise value. Fractal adds Octaves of it, each with its frequency times Lacunarity and its weight times Gain, divided by the total weight. Random Seed changes the noise pattern.

Normal Only moves each point to its closest mesh vertex and then along the normal estimated there by noise + Surface Offset. 3D Reproject moves the point by three noise values, one for each axis, replaces the result with the closest mesh vertex and adds Surface Offset along that normal.

Affect X, Y and Z keep unchecked axes at their input value. With no input points the output is empty.

Example Connections​

vJSONPointsOnGrid.Output -> vJSONNoiseOnMesh.ArrayPoints
vJSONFromOBJ.Points -> vJSONNoiseOnMesh.MeshPoints
vJSONNoiseOnMesh.Output -> vJSONCameraProjection.ArrayA
vJSONCameraProjection.Output -> vJSONShapeRender.ArrayPoint
Background.Output -> vJSONShapeRender.Input