MotionMiddleweight
Perlin, curl & FBM noise fields
Smooth randomness for organic motion.
Smooth randomness: values that drift gently in place of jumping around. It drives terrain, smoke, wobble and anything that should look organic. Curl noise is a version that makes particles swirl like fluid without piling up.
- Breaks when
- noise in JS per particle is slow; move it to the GPU
- Also called
- simplex, noise(), fbm, curl noise, domain warping
Prompts
Flow field for 20k particles, on the GPU
Three.js GPGPU (GPUComputationRenderer or a ping-pong FBO): 20,000 particles advected by curl noise computed in the simulation shader (curl of a 3D simplex noise via finite differences, epsilon 0.01), scale 0.6, speed 0.4, with a slow time offset so the field itself drifts. Particles respawn at random positions when their life ends (lifetime in the alpha channel). Render as points with size by age and a single ink color. Explain why curl gives no clumping.
Terrain from FBM with a ridged octave
A displaced plane whose height is a 6-octave FBM (lacunarity 2, gain 0.5) where octaves 4–6 use a ridged transform |1 − |n||. Domain-warp the input by a second FBM (strength 0.3) for the folded look. Compute in the vertex shader with a noise function you include; normals from finite differences. Expose scale, warp and ridge in lil-gui.
Noise you can see
A Canvas 2D explainer that draws the same simplex noise four ways side by side: raw value, 4-octave FBM, domain-warped FBM, and the curl vectors as small arrows. All from one seed; a slider scrolls time. Label the four with their formulas.
Related
Resources · 5
- SeascapeFBM water raymarched in a single fragment shader.TDMsite · code · demoAug 25, 2026
- The Book of ShadersChapters 9-13 for noise and fbm.patriciogvsite · code · demoAug 12, 2026
- three.js example: Minecraft-style voxelsmrdoobsite · code · demoJun 22, 2026
- simplex-noise.jsjwagnerGitHub · codeJun 1, 2026
- three.js example: terrainmrdoobsite · code · demoMar 20, 2026