OceanLab - Realistic Ocean: 9 Ocean Types, Depth, Foam & Live Interaction
OceanLab: Documentation
Requirements
Blender 5.0 or newer (tested on 5.0, 5.1, 5.2 and 5.3). EEVEE and Cycles.
Installation
- Download
ocean_lab-<version>.zipfrom your Superhive library. Do not unzip it. - Drag and drop the zip into the Blender window, or go to Edit → Preferences → Get Extensions, open the ⌄ menu at the top right and choose Install from Disk…
- The add-on is enabled automatically.
Quick start
- Save your .blend file (the wave cache is written next to it).
- Open the sidebar (N) → OceanLab tab → Add Ocean. Or Add → Mesh → Ocean (OceanLab).
- Wait for the bake (a progress bar runs in the status bar). The ocean covers your scene frame range.
- Press play. Pick another Type (Tropical Lagoon, Storm, Arctic…) or another Sea State and press Bake Waves: a different sea.
- Put a prop on the water: select it and press Float. Press Disturb Water next to it and it pushes the water as it moves; play from the first frame to see the ripples.
Panels
Type – the ocean type: a whole sea in one choice. It sets the sea state, a swell, the depth and the colours of the water. The colours change at once; the waves need a bake, and the panel says so (Waves changed: rebake). Everything a type sets is an ordinary setting you can change afterwards. The sky is not part of it: light the scene to suit the sea.
| Type | Sea | Water |
|---|---|---|
| Open Ocean | fresh breeze over a long swell | deep blue, clear |
| Tropical Lagoon | light breeze, 4 m deep | turquoise over pale sand |
| Mediterranean | gentle breeze, short low swell | clear cobalt |
| North Atlantic | strong breeze, heavy swell | steel grey |
| Storm | strong gale, high swell | dark, streaked with foam |
| Arctic | light breeze, slow swell | cold and dark |
| Glassy Swell | no wind, a smooth swell | deep blue, mirrors the sky |
| Green Coast | moderate breeze, 14 m deep | murky green |
| Lake | small short waves, no swell | dark fresh water |
Sea State – Beaufort force 0 (glassy) to 12 (hurricane). Sets wind speed, fetch, choppiness and foam, and from force 7 up larger wave tiles (Bake panel), so the long waves of a gale have room.
Wind & Waves – fine-tune what the preset chose: Wind Speed, Fetch (how far the wind has blown over open water: longer fetch, longer and higher waves), Wind Direction, Alignment (confused sea to aligned swell), Choppiness (sharper crests), Height Scale, Depth, Seed. Swell Height, Swell Length and Swell Angle add a swell: long, regular waves from a storm far away, on top of what the local wind raises (height 0 for none; the angle is measured from the wind). A swell without wind is a smooth, glassy sea that still moves. Keep the length under half the Swell Tile. All of these need a new bake.
Foam – Foam Amount (how easily crests break), Foam Softness (how wide the edge between clear water and foam is) and Foam Fade (how fast the foam a breaking crest leaves behind fades, in seconds; it is gone after about four times as long) are baked. Foam Coverage, the foam colour and Foam Motion change instantly. Foam Motion is how lively the foam is: how fast its lace writhes, breaks up and gathers, and how fast the wind carries it along. 0 lays the foam still on the water, 1 is the default, 2 and more make a restless sea.
Bake – Start Frame and Frames (the baked range), Loop (seamless repeat after the last frame),
Resolution (128 for previews, 256 by default, 512 for close-ups), the three tile sizes and the
Cache Folder. //ocean_cache/ means next to the .blend file. Keep the folder with the file. A loop
should be at least as long as the longest waves take from crest to crest (about 8 seconds for a moderate
sea or a swell, 12 and more for a storm): a shorter one has to run them too fast, and the panel says so.
Mesh – Follow (the detail stays around this object, normally the camera), Detail Radius and Detail Spacing, Horizon (how far the water reaches) and Horizon Rows, Wave Scale (scales the baked waves without rebaking) and Wave Groups (far from the Follow object the waves come higher in some stretches of sea and lower in others, so nothing repeats from the air).
Look – Deep Water (the hue the sea takes with depth), Wave Glow and Glow Strength (the light that scatters inside the water and shines through thin crests), Clarity (how far you can see into the water), Seabed (the colour of the floor, visible when Depth is small compared to Clarity), surface Roughness and Ripple Detail.
The water in Cycles and in EEVEE
In Cycles the sea is real water: a clear surface that refracts, over a volume that absorbs and scatters light. You see the submerged part of a floating object fade with depth, crests glow when the sun is behind them, and foam casts a soft shadow into the water. Use at least 128 samples with denoising.
Seeing into the water in EEVEE. Tick See Into Water (EEVEE) in the Look panel and shallow water lets through what lies under it: the land and the sunken objects of the two Interaction collections, and the bed of a shallow sea (Depth). Clarity sets how deep you see. The water has to know the depth, so an object under water shows once it is in Objects or Land, and only inside the Area. The sea then casts no shadows, and EEVEE draws it without light through the crests and without screen-space reflections; leave it off for the open sea.
EEVEE cannot look through a surface into a volume, so there the same settings drive a surface version of the water: the colours match, crests are translucent and the foam is the same, but the water is not see-through. It renders in a few seconds per frame, which makes it the choice for animations.
How rough the sea is. Two things follow measurements of the real sea rather than taste. The short waves are drawn as steep as the wind really makes them (the slopes Cox and Munk measured from the glitter of the sun), so a gale glitters and scatters the sky like a gale, not like a calm sea scaled up. And the share of the sea under foam grows with the wind the way whitecap counts at sea do: a few whitecaps at force 4, about a tenth of the sea in a gale. Foam Amount and Ripple Detail still let you have it your way.
Foam that moves. Foam is made where a crest breaks: thick and white on the crest itself. The crest moves on, and what it left behind opens into a lace of thin veins and fades, with a pale halo of bubbles under the surface around it. The lace is not a still picture laid on the water: its veins writhe, holes open and close in it, and wind and turbulence pull it apart into streaks in one place and gather it in another, so a few seconds later the foam is other foam in other places. And the wind carries it: the foam drifts downwind at a few per cent of the wind speed, as everything that floats does. Foam Motion in the Foam panel sets how lively all of this is, without a new bake. It works in a loop too, and the loop still closes (there the drift swings to and fro instead of running on).
Floating objects
Select any object that is not the ocean (a buoy, a crate, a raft, a swimmer's ring) and open the Float panel in the OceanLab tab:
- Place the object where you want it. Its own position is the anchor; the height does not matter.
- Press Float. OceanLab keyframes the object so it rises, falls, sways and tilts with the baked waves over the scene frame range. Several selected objects float at once with the settings of the active one.
Height Offset raises or sinks the object relative to the water. Tilt is how much it leans with the wave slope. Sway is the horizontal motion: 0 stays over its spot like an anchored buoy, 1 moves with the water. Footprint is the width of water the object averages: leave it at 0 to use the object's size, or raise it so a large object ignores the small ripples. Inertia makes heavy things react slowly. Bobbing lets the object overshoot and bob for a moment after a wave has passed, like a real floating body; 0 follows the water exactly. Drift carries it downwind at that speed, for debris that travels across the sea.
Objects that move. Animate the object first: keyframes, a Follow Path constraint, a moving parent. Then press Float. With Follow Animation on, OceanLab steps through your animation and keeps the object on the water all along its way, so a buoy can be towed across the waves or a crate pushed along a curve. Your animation stays as it is; the waves are added on top. Float steps through the scene frames to read the motion, so keyframe your changes first. A constraint that sets the position outright (Copy Location, for one) leaves Float nothing to move: float its target instead; OceanLab tells you when that happens. Select a parent together with its children and the children simply ride with the parent.
Live. Tick Live and the object gets no keyframes: physics moves it on every frame while the animation plays. It rides the waves and the ripples, falls back in when you lift it out and let go, and travels with the current of the Interaction panel (Sway sets how much). Height Offset, Tilt, Footprint, Inertia and Bobbing work as above. Like a simulation it runs forward, and the object returns to where you put it when the animation goes back to its start. What Live adds sits in the object's delta transform: your own location stays as you set it, and unticking Live puts the object back.
Live is the one thing that needs the add-on while it plays and renders. To render an animation with live objects from the Blender window, turn on Render > Lock Interface. For a render farm, for motion blur on the object or to pass the file on, turn the motion into keyframes: select the object, Object > Animation > Bake Action with Visual Keying on, then untick Live.
Moved the object, changed its animation or the ocean? Press Float again; the old keys are replaced. The × button clears the float animation. The motion lives on the object's delta transforms, so your own location and rotation stay editable, and the keyframes are ordinary animation that renders without the add-on.
Objects that disturb the water
Objects can push the water as they move. Ripples spread from them, a moving object trails foam, something dropped in lands with a splash ring, and foam gathers along the waterline of everything that stands in the sea. It is simulated while the animation plays, on top of the baked waves, so you see it in the viewport at once.
- Select the objects (meshes), open the Float panel and press Disturb Water. They go into a collection named OceanLab Interaction, which the ocean watches. You can also drop objects into that collection yourself. For things that never move (a shore, rocks, a harbour wall) press As Land instead: land goes into OceanLab Land, is read once when the simulation starts and then costs next to nothing per frame. A terrain as a moving object can halve the playback speed; as land it does not.
- Select the ocean and open the Interaction panel. If it says the mesh is too coarse, press Fine Mesh: ripples are only as fine as the mesh cells, and 15 cm cells suit crates and buoys.
- Go to the first frame of the scene and press Play.
It works with whatever moves the objects: Float, your own keyframes, a parent, or your mouse while the timeline plays. Rocks, pillars and a terrain that rises out of the water get ripples and foam too.
Area is how far from the Follow object the water reacts; it lies inside the Detail Radius. Reaction is how strongly the water answers. Ripple Speed, Calming (how fast ripples die away) and Smoothing shape the ripples. Foam and Foam Fade set how much foam the objects make and how long it lasts; it has the same look as the foam of the waves.
Droplets throws drops of water up where an object hits the water hard: something dropped in, or dragged fast. 0 turns them off.
Current and Current Direction add a steady flow to the area. It carries the ripples and the foam along and slides around objects and shores, so a rock, a pillar or a moored buoy that stands still leaves a trail of foam downstream. The current moves the ripples and the foam, not the baked waves and not the objects: to let an object travel, use Drift in the Float panel or animate it.
Good to know:
- It is a simulation. It runs forward from the first frame of the scene frame range, and only inside that range; jump to a frame and you see the water as it was last simulated. An animation rendered from its first frame needs nothing more. Before you render single frames, start in the middle or send the file to a render farm, press Bake Ripples in the Interaction panel: it stores the ripples and the droplets in the file. The × next to it removes them again.
- Speed. Most of a frame is the ocean mesh itself and the objects that move; land is free. On an 8-core desktop a 110,000-vertex ocean with a 190 x 190 point area, a terrain as land, one moving object and a current takes about 26 ms per frame to compute. With the drawing on top, expect roughly 10 to 20 frames per second in Material Preview, depending on the computer and on what else it is doing. A smaller Area, larger cells or a shorter Detail Radius are faster. Keep terrains in Land, and turn off EEVEE ray tracing while you work.
- The ripples do not move objects by themselves. Float keyframes an object onto the baked waves; tick Live in the Float panel and the object is moved by physics on every frame instead: it rides the waves and the ripples, falls back in when you lift it out and drop it, and travels with the current (its Sway sets how much). Live needs the add-on while it plays; Object > Animation > Bake Action turns the result into keyframes.
- Land is read when the simulation starts. Moved it? Go back to the first frame. It is read as one top and one underside per point, so a pier on piles counts as a solid wall: put such things into Objects.
- Droplets fly where an object hits the water, not where the sea runs up a shore.
- Objects are read as they are on each frame, with their modifiers. They must be meshes (or collection instances of meshes) that are closed above the water: an open hull needs a deck, or the water does not see it. A very heavy mesh slows it down: put a simple closed stand-in into the collection instead and hide it from the render.
- A stored bake belongs to the mesh it was made with. After you change Area, Detail Spacing or the objects, press Bake Ripples again (until then the ripples are hidden or out of date).
- It makes ripples, foam and a few droplets on the surface. It does not make a breaking bow wave, sheets of spray or water that flows over an object.
Demo scene
OceanLab_Demo.blend (in the demo zip) is a sea-state 5 ocean in late-afternoon light with a buoy, a
crate, a drum and a life ring riding the waves, one of them drifting and one towed along a path, baked as
a six-second loop at the 128 resolution so the download stays small. All five props disturb
the water: press Play from the first frame and they leave ripples and foam, or drag one
through the sea while it plays.
Keep the ocean_cache folder next to the file. Open it and press Play, or F12 to render in EEVEE. With
OceanLab installed, pick another Sea State and press Bake Waves to change the weather, and raise
Resolution to 256 or 512 for close-ups.
Rendering on another machine or without the add-on
Everything OceanLab makes is regular Blender data: a mesh with a Geometry Nodes modifier, a material and three image sequences. Copy the .blend together with its cache folder and it renders anywhere.
FAQ
The ocean is flat.
It has not been baked yet, or the cache folder is missing. Press Bake Waves. If you baked before saving
the file, the cache went to Blender's temporary folder: save the file and bake again, and the cache lands in
ocean_cache next to it.
I moved or copied the .blend and the ocean is flat.
Move the ocean_cache folder along with it; the file points to the cache with a relative path. If the cache
is gone, press Bake Waves again.
The waves stop after some frame. Only the baked range animates. Raise Frames in the Bake panel and bake again, or turn on Loop.
The objects leave no ripples. Play from the first frame of the scene frame range: the ripples are simulated forward from there and only inside that range. Check that Interaction is ticked on the ocean, that the object is in the Objects collection and that it is a mesh that cuts the water surface. For single frames and render farms press Bake Ripples first.
I see foam around the objects but hardly any ripples. The mesh is too coarse to draw them. Press Fine Mesh in the Interaction panel, or lower Detail Spacing in the Mesh panel to 0.15 m or so.
I picked another type and only the colour changed. The colours of the water change at once; the waves are baked. The panel shows Waves changed: rebake: press Bake Waves. Floating objects then need Float again.
The swell runs in a slightly different direction than I set. A wave that repeats on a tile can only run in the directions the tile allows, and a long swell has few of them. Use a shorter Swell Length, or a larger Swell Tile in the Bake panel.
The horizon ends too early from a high camera. Raise Horizon in the Mesh panel.
A floating object does not match the water. Float uses the ocean's settings, and refuses to work while they differ from the last bake: press Bake Waves on the ocean and then Float again. At resolution 128 in a storm an object can sit a few centimetres off the water; use 256. If you changed the object's own animation, press Float again as well. Objects more than about 150 m from the Follow object sit in the area where Wave Groups reshapes the waves: move the Follow object closer or lower Wave Groups.
The water looks different in Cycles and EEVEE. Cycles renders the water as a volume you can see into; EEVEE renders a surface with matching colours. Small differences in brightness are normal. For a close shot of something in the water, use Cycles.
The water is too dark or too murky in Cycles. Raise Clarity for clearer, deeper-looking water, or Glow Strength for more light in it. Raising Volume under Render → Light Paths → Max Bounces from 0 to 2 also brightens the water a little.
The OceanLab tab does not appear. Make sure the add-on is enabled under Edit → Preferences → Add-ons and that the sidebar is open (N).
Changelog
1.0.0
- First working version: three-cascade FFT ocean, Beaufort sea states, foam, horizon mesh, EEVEE and Cycles.
- Water you can see into in Cycles (refraction, depth, glowing crests, foam shadows) with a matching surface version for EEVEE; three-layer foam (thick foam, lace, aerated water) that moves: it is made where a crest breaks, trails behind it and fades, its lace keeps breaking up and closing, and the wind carries it along; Foam Motion sets how lively it is.
- Float: objects ride the waves (height, tilt, sway, footprint, inertia, bobbing), follow their own animation across the sea and can drift downwind, keyframed so scenes render without the add-on.
- Interaction: objects disturb the water while the animation plays, with ripples, foam trails, splashes with droplets and foam along their waterline; land that is read once; a current that carries foam and ripples along; Bake Ripples for single frames and render farms.
- Live Float: objects moved by physics on every frame, so they can be dragged, dropped and carried by the current while the animation plays.
- See Into Water: in EEVEE shallow water shows the land and the sunken objects under it.
- Ocean types: nine seas in one menu (Open Ocean, Tropical Lagoon, Mediterranean, North Atlantic, Storm, Arctic, Glassy Swell, Green Coast, Lake), each with its waves, swell, depth and water.
- A swell on top of the wind sea; larger wave tiles for gales and storms; short waves and foam coverage set from measurements of the real sea; the panel says when the waves need a new bake.
Discover more products like this
storm floating objects Water tropical ocean simulation foam waves geometry nodes ripples sea ocean interactive-water