Skip to content

WebGPU Fluid Lab

Fluid Dynamics fuses macro-scale spectral oceanography with micro-scale GPU particle fluid simulation in one interactive WebGPU lab. Fly across a six-cascade FFT open ocean where beach balls, rubber ducks, crates, and cannonballs ride real rolling swells, blast ring ripples and sunlit spray plumes, or spiral into a localized maelstrom. Switch seamlessly into the 30,000-particle Wave Tank to grab, fling, and splash toys under the same sunset, tropical, storm, or twilight skies with wind shear, a wave paddle, fountain, whirlpool, and custom liquid mediums. Browsers without WebGPU get the interactive Three.js heightfield fallback with caustics, refraction, and Mantaflow splashes.

WebGPUFFT WavesParticle FluidsBuoyancyThree.js

Open Sea waves adapted from Noniv’s web-ocean by Maksymilian Dendura (MIT), combined with particle-fluid buoyancy and threejs-water.

Fluid Dynamics title beside a sunlit crystal ocean splash crown, a yellow rubber duck riding a teal wave crest, and a golden sunset horizon

Explore Fluid Dynamics

Fluid Dynamics unifies a six-cascade WebGPU FFT open ocean and a 30,000-particle SPH wave tank under shared atmosphere and fluid controls. Drop density-accurate beach balls, rubber ducks, crates and cannonballs into rolling sunset swells or a glass-clear particle basin, click to blast expanding ripples and spray plumes, and trigger waves, wind gusts, fountains and whirlpools.

Switch between Open Sea and Wave Tank at the top, pick a sky or liquid preset in Settings, drop props with the dock or keys 1 to 4, and toggle Waves, Fountain, Whirlpool or Wind. In Open Sea, click water to splash, drag to look and use WASD to fly; in Wave Tank, tap to splash and drag toys to throw them. Browsers without WebGPU load the interactive WebGL heightfield water lab.

Related reading

Projects

Explore projects

Instagram