Skip to content

Ocean waves: wind, swell and layers

You never place waves by hand. You describe the sea with a few controls, and the ocean builds the waves from them:

  • The wind sea: Wind Speed and Wind Direction set how rough the sea is and where the waves travel.
  • Layers: up to eight, each adding a range of wave lengths. Together they decide which wave lengths the sea can have.
  • The swell: long, regular waves from a distant storm, with their own height, length and direction.
  • Choppiness: how sharp the crests are.
  • Wave Seed: which of many equally valid random seas you get.

All of these live on the ocean actor (BP_DynamicRealWater) under DRW Ocean Spectrum, or in a Wave Data Asset that drives the ocean. This page explains what each control does and how to combine them. For the step by step setup and every setting with its default and range, see Setting up the ocean.

Wind Speed (5 to 80, no physical unit) is the main control of the sea state. Raise it for longer, higher waves, a rougher sea and more whitecaps; lower it for a calm sea of short waves. BP_DynamicRealWater starts at 20, and the shipped DA_DefaultWaves uses 45.

The long waves a high Wind Speed asks for only appear if your layers cover them (see Layers). Past your longest layer, more wind makes the existing waves higher instead of adding longer ones.

Wind Speed also changes the look: a windier sea looks darker and foamier with the same visual settings.

Wind Direction is a direction in the level’s X/Y plane. The waves travel with the wind. Only the direction counts, not the length of the vector: (1, 1) and (0.5, 0.5) give the same sea.

Two settings on each layer shape how its waves follow the wind:

  • Wind Influence: how tightly the waves line up with the wind. Higher values give long, parallel crests; lower values a more confused sea.
  • Opposing Wave Factor: the strength of the waves running against the wind. Values below 1 weaken them; all shipped layers use values below 1.

Each entry in Cascade Settings (on the ocean) or Layers (in a Wave Data Asset) is one layer of waves, up to eight. A layer adds a range of wave lengths around its Dominant Wavelength (meters). The Details panel shows that range as the layer’s title, its Band: for example 23.6 m - 189 m band for the 94.3 m layer. The Band is shown for FFT Resolution 512 x 512. Bands may overlap; overlapping layers add their waves together.

The layers decide which wave lengths the sea contains:

  • The longest layer sets the longest waves you can get, and the longest possible swell.
  • The shortest layer sets the finest ripples.
  • Wave lengths outside every layer’s Band are missing from the sea.

Per layer you also set:

  • Wave Amplitude: how strong the layer’s waves are. Higher values give taller waves in that range of lengths.
  • Choppiness: the layer’s crest sharpness, multiplied by the ocean’s own Choppiness.
  • Wind Influence and Opposing Wave Factor (Advanced): alignment with the wind and the strength of waves moving against it, as above.
  • WPO Strength (Advanced): how strongly this layer moves the surface.

When you add an entry with + in the Details panel, the new layer copies your finest layer and is placed one step finer, so you only need to adjust it.

The shipped presets and BP_DynamicRealWater use eight layers with Dominant Wavelengths of about 94.3, 64.3, 32.2, 21.4, 10.7, 4.02, 2.68 and 1.79 m.

How to use them:

  • For longer storm waves and a longer swell, raise the longest layer’s Dominant Wavelength, and raise Wind Speed so the wind fills it.
  • For more or less of a certain wave size, change the Wave Amplitude of the layer whose Band holds it.
  • For finer surface detail, add a finer layer or raise FFT Resolution.
  • To save GPU time, remove the finest layers first: they add the least to the large-scale look.

The swell is separate from the wind: long waves from distant storms that the local wind does not drive. Use it for long, rolling waves under a light local wind, or for waves that cross the wind sea at an angle. It has three settings of its own:

  • Swell Height (0 to 10 m): the significant wave height, the average height of the highest third of the swell waves. 0 turns the swell off and leaves the wind sea only.
  • Swell Wavelength (10 to 1000 m, Advanced): the length of the swell waves.
  • Swell Direction: the direction the swell travels, independent of the wind.

The swell adds long, regular crests traveling close to its direction on top of the wind sea. It can only be as long as the upper end of your longest layer’s Band (189 m with the shipped layers): a longer Swell Wavelength is capped there, and one shorter than every Band is raised to the shortest Band. For a longer swell, lengthen your longest layer or add a longer one.

The shoreline surf also follows the swell when the swell is longer than the wind waves. See Shoreline surf.

Real ocean waves have sharp crests and broad, flat troughs. Choppiness (0 to 3) sets how sharp the crests are: 1 matches real waves; higher values sharpen the crests and make them fold over sooner. Breaking crests are where the ocean makes its foam, so more choppiness also means more whitecaps. Each layer’s own Choppiness multiplies the ocean’s value. BP_DynamicRealWater ships with Choppiness 2; the shipped DA_DefaultWaves uses 1.

Wave Seed (0 to 9999) picks a different random pattern with the same wave sizes and character. 0 is the default pattern. Use it when two levels or two shots should not show the identical sea. The seed can be keyed in Sequencer, for example to give each shot its own pattern.

In multiplayer, every machine draws the ocean itself, yet all players see the same waves and boats ride the same crests:

  • Same settings. The wave settings replicate from the server: Wind Speed, Wind Direction, the layers, the swell, Choppiness, Wave Seed and the assigned Wave Data Asset.
  • Same clock. All DRW water reads one water clock, and in multiplayer the server’s clock wins. See The water clock.
  • Same seed, same sea. Identical settings and Wave Seed give identical waves on every machine.
  • FFT Resolution only changes the finest detail. Lower values lose the shortest ripples, but the waves that move boats are the same at every resolution, so a player at 128 x 128 and a player at 1024 x 1024 ride the same sea. FFT Resolution is therefore a local setting that does not replicate.
  • Water Quality only changes what is drawn. Lower tiers draw fewer layers on screen; floating objects always use all layers.

By default, changes to the waves do not snap in game:

  • A change to the wind, the layers or the seed cross-fades from the old waves to the new ones over Wave Change Blend Time (default 1 s, 0 to 10 s), so floating objects are not thrown. 0 switches at once. In the editor (outside play) changes apply immediately.
  • Swell changes ease in over about the same time.
  • Switching to a new Wave Data Asset with Set Wave Data blends over the duration and easing you give it.

During a preset blend, numbers move smoothly from the old values to the new ones. Settings that cannot be blended switch at the halfway point: Enable FFT, Wave Seed, FFT Resolution, and on the look side Enable Foam Accumulation and Enable Caustics. If the two presets have a different number of layers, the extra layers fade in from zero height, or fade out to zero. When the blend ends, the new asset is applied exactly. Sequencer’s DRW Ocean Preset track blends presets the same way, by the weights of overlapping sections.

Outside play, the waves do not move in the editor viewport. Turn on Animate In Editor (under DRW Ocean Spectrum, off by default) to see them move while you work; the detailed ocean grid then also follows the editor camera. A DRW Water Time track in Sequencer drives the waves in the editor either way.

The shoreline surf and the depth map are built when play starts, so they never show in the editor viewport, with or without this option.

The waves described here are the open-ocean waves. Close to land they change: they shrink in shallow water, and inside the shore band the long waves are replaced by surf that rolls toward the beach, breaks and runs up. Floating objects feel the same reduced waves. See Shoreline surf.