Ihmsen Unified Spray, Foam, and Bubble Whitewater Simulation
Generate and advect secondary spray, surface foam, and submerged air-bubble particles from a single one-way-coupled particle pool driven by primary fluid turbulence, wave crests, and local fluid density.
Also known as unified whitewater, diffuse fluid particles, secondary spray foam bubble simulation
In the family Simulation & animation, particle fluids
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | Core and official addons have no particle fluid or Ihmsen unified whitewater solver. |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | HDRP Water System provides surface foam masks rather than a particle-based Ihmsen unified spray/foam/bubble whitewater solver. |
| Unreal 5.7 | None found | |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Primary liquid solvers such as Smoothed Particle Hydrodynamics (fluids) and FLIP/PIC fluids resolve bulk water motion but lack the resolution to directly capture fine droplets, bubbly wakes, and lingering frothy sheets. Ihmsen's unified model runs a lightweight secondary particle pool coupled one-way to the liquid.
Each step, emission potential is evaluated at primary fluid particles (or sampled fluid cells) by combining three physical cues: trapped air from velocity differences with nearby fluid (or FLIP/PIC disagreement and impact impulses), wave crests where surface curvature and outward motion peak, and kinetic energy so calm water emits nothing. High-potential regions spawn diffuse particles into free pool slots.
All diffuse particles share one state representation and are dynamically classified every step solely by the surrounding primary fluid density (or neighbor count): particles in low-density air act as spray flying ballistically under gravity and drag; particles at the free surface act as foam advected passively by the underlying fluid velocity while gradually decaying; and particles surrounded by dense liquid act as air bubbles experiencing upward buoyancy plus drag toward the local water velocity. Because classification is continuous and stateless, plunging spray seamlessly turns into submerged bubbles that rise back into surface foam.
When to choose it
Reach for it when
- particle fluid simulation lacks convincing spray foam and underwater bubbles
- need physically driven whitewater emission from breaking waves and splashes
- spawn secondary foam particles automatically where fluid air gets trapped
- transition whitewater smoothly between ballistic spray surface foam and bubbles
- make real-time sph or pbf water splashes look turbulent and aerated
Choose it whenever particle-based waterfalls, splashes, ocean breakers, or water spells need believable aerated detail without shrinking the primary fluid particle spacing.
Prefer Flow-map water animation or FFT Ocean (Tessendorf) with Jacobian foam masks when rendering large open water surfaces that do not use 3D fluid particles. Prefer Soft particles (depth-fade billboards) for hand-placed mist or waterfall billboard sheets when no physical fluid solver is present.
Field marks
- One-way coupling means dense foam mats cannot dampen surface waves or exert buoyancy back onto the liquid
- Poorly tuned trapped-air or kinetic-energy thresholds either flood calm pools with snow-like foam or starve energetic splashes
- Coarse primary fluid grids cause foam particles to float slightly above or sink below the reconstructed liquid surface
- Dense overlapping whitewater sprites cause heavy overdraw and sorting pops unless rendered with order-independent blending
Lineage
From the citation graph (Crossref reference lists): its primary source cites FLIP/PIC fluids; cited by Unified particle physics.
Crosses
- Narrow-range SSF liquid with whitewater and wet-ground reaction field: A complete real-time particle liquid pipeline from turbulent splash to stained wet ground. Position-based fluid particles spawn physically classified spray, foam, and bubbles; a narrow-range screen-space filter turns the particle depth into a smooth glass-like surface without silhouette halos; and water contact drives an fp16 stochastically rounded ground reaction field that absorbs, spreads, and dries smoothly without quantization stall.
- FLIP/PIC fluids: Primary FLIP particle velocity, trapped-air aeration, and grid density fields seed, classify, and advect the secondary whitewater pool.
- Screen-space fluid rendering (curvature flow): Spray, foam, and bubbles layer over the smoothed liquid depth surface to add turbulent visual breakup and splash detail.
- Weighted blended order-independent transparency: Order-independent compositing renders tens of thousands of translucent foam and spray sprites without per-frame depth sorting.
Sources
- primaryMarkus Ihmsen, Nadir Akinci, Gizem Akinci, Matthias Teschner (2012). Unified spray, foam and air bubbles for particle-based fluids. The Visual Computer.Verified via crossref · 2026-11-30doi:10.1007/s00371-012-0697-9
- implementationHumpalumps (2026). Humpalumps/ultra-elements. Real-time elemental spell VFX lab for three.js (WebGL2): 39 tunable spellsGitHub API · license MIT · 2026-11-30