Ocean simulation is the set of techniques that produces an animated, physically plausible sea surface for film, games and visualization. In Simulation & effects within 3D graphics & animation, it differs from general fluid simulation because it usually does not solve the full fluid equations; instead, it sums many procedural waves whose sizes and speeds follow statistical models of real oceans.
Production ocean setups typically combine three layers: a spectral displacement surface for open water, a localized fluid simulation where boats, creatures or coastlines interact with the water, and whitewater elements such as foam, bubbles and spray that sell scale and energy.
How spectral ocean surfaces are generated
The dominant approach, popularized for film by Jerry Tessendorf around 2001, treats the sea as a superposition of sinusoidal waves. A wave spectrum defines how much energy each wavelength and direction carries, random phases make the result natural, and an inverse fast Fourier transform (FFT) converts thousands of wave components into a height and displacement grid every frame.
Each wave component moves according to the deep-water dispersion relation, in which angular frequency equals the square root of gravity times wavenumber. As a result, long waves travel faster than short waves, which gives spectral oceans their convincing, constantly evolving pattern. Horizontal choppiness displacement sharpens crests and flattens troughs, approximating the shape of real wind waves.
The table summarizes the main parameters exposed by ocean tools and their visual effect.
| Parameter | Typical range | Visual effect |
|---|---|---|
| Wind speed | 2 to 30 m/s | Overall wave height and energy |
| Wind direction alignment | Low to high | Parallel swell versus confused sea |
| Choppiness | 0 to about 2 | Sharper crests, risk of self-intersection |
| Grid resolution | 256 to 2048 cells | Detail level and memory cost |
| Patch size | 50 to 1000 m | Largest wavelength before tiling |
| Depth | Shallow to infinite | Wave speed and steepness near shore |
Wave spectra and procedural models
Ocean tools offer several spectrum models derived from oceanographic measurements. They differ in how they distribute energy across wavelengths, so the choice affects the character of the sea more than any single slider.
The following table compares the most common models and wave formulations.
| Model | Basis | Typical use |
|---|---|---|
| Phillips spectrum | Simple wind-driven energy model | General purpose, real-time water |
| Pierson-Moskowitz | Fully developed sea after long wind | Open ocean in steady weather |
| JONSWAP | Fetch-limited, peaked spectrum | Coastal or developing seas |
| TMA | JONSWAP corrected for depth | Shallow water near beaches |
| Gerstner waves | Sum of a few trochoidal waves | Games, stylized or low-cost water |
Gerstner waves are evaluated directly rather than with an FFT, which suits a handful of waves on a GPU. Spectral FFT oceans scale better to thousands of components and remain the standard for visual effects. Many engines combine multiple FFT cascades at different patch sizes to hide tiling.
Interaction, foam and whitewater
A spectral surface cannot react to objects, because it is precomputed from statistics, not from forces. Where a ship hull, a swimmer or a cliff disturbs the water, artists run a FLIP fluid simulation in a bounded tank and blend it into the spectral ocean at the edges. Tools such as Houdini and Bifrost initialize the tank velocity from the ocean spectrum so the transition is seamless.
Foam is usually derived from the Jacobian of the horizontal displacement: where the surface folds or compresses, the Jacobian drops toward zero and crests are likely to break. For interaction, a separate whitewater simulation emits spray, foam and bubble particles from regions of high curvature, velocity and air entrainment.
This table shows which layer handles each visible feature in a typical shot.
| Visible feature | Technique | Cost |
|---|---|---|
| Distant open sea | Spectral displacement | Low |
| Crest foam patterns | Jacobian-based foam maps | Low |
| Hull wake and bow wave | FLIP fluid tank | High |
| Spray and mist | Whitewater particles | Medium to high |
| Underwater bubbles | Whitewater or particle emitter | Medium |
Rendering and pipeline considerations
Spectral oceans are usually evaluated at render time as a displacement shader or stored as displacement texture sequences, which keeps scene files small. Close to camera, the surface needs fine tessellation or adaptive subdivision; far away, normal maps carry the small ripples while geometry stays coarse.
Look development depends on accurate Fresnel reflection, refraction and subsurface-like scattering for the turquoise glow in thin crests. Interaction tanks must be cached through a simulation cache, often at terabyte scale for hero shots, so studios plan tank size and voxel resolution early.
Real-time engines follow the same principles with tighter budgets. Games typically run GPU compute FFTs at 256 or 512 resolution, combine two to four cascades, and use level-of-detail meshes or projected grids that concentrate vertices near the camera. Gameplay systems such as buoyancy read wave heights from the same displacement data, so physics and visuals stay synchronized. Offline tools such as the Blender Ocean modifier and the Houdini ocean toolset expose comparable controls, which makes spectral settings broadly transferable between applications.
Limitations and typical mistakes
Most problems with ocean simulation come from scale errors and visible repetition. The list below covers frequent issues.
- Visible tiling: a single small patch repeats; add larger cascades or noise.
- Wrong scale: wave periods that do not match the scene units make a sea look like a bathtub.
- Excessive choppiness: crests self-intersect and produce black artifacts.
- No breaking waves: spectral methods cannot plunge or curl, so surf needs dedicated simulation or sculpted geometry.
- Hard blend seams: a mismatched tank boundary shows a visible edge in the water.
A plain-language summary
Ocean simulation makes computer-generated seas that look real. Simulating every drop of a whole ocean is far too slow. So artists mix thousands of simple waves instead. Big waves move fast, and small ones move slowly, just as in nature.
Where a boat or a rock touches the water, a more detailed water simulation takes over. Foam and spray are added on top. Together, these layers give a believable sea at a reasonable cost.
An example from practice
A visual effects team must deliver a ten-second aerial shot of a fishing trawler in a rough North Atlantic sea. The open water uses a JONSWAP spectrum with a wind speed of about 18 m/s, two FFT cascades of 200 and 1,000 meters, and moderate choppiness of 1.2 to avoid self-intersection.
Around the trawler, the team runs a FLIP tank of roughly 120 by 60 meters, initialized from the same spectrum. A whitewater pass adds bow spray and a foam trail. The tank and particle caches reach several terabytes, but the open ocean remains procedural. The result is a seamless, convincing storm sea delivered within the schedule, with the expensive simulation confined to the area the camera actually examines.