Lakes and pools
Lakes and pools are bounded bodies of still water with their own look, ripples from floating objects, caustics, an underwater view and buoyancy. They work on their own, next to an ocean, and with rivers flowing into and out of them.
| Lake | Pool | |
|---|---|---|
| Blueprint to place | BP_DRW_Lake | BP_DRW_Pool |
| Actor class | DRW Water Body - Lake | DRW Water Body - Pool |
| Surface shape | Round | Rectangular |
| Wind ripples | Yes (lake waves) | No |
| Walls detected for ripples and caustics | No | Yes (needs mesh distance fields) |
| Default look | DA_WB_Lake_Visual | DA_WB_Pool_Visual |
Both Blueprints are in /DynamicRealWater/Blueprints/. For help choosing, see Pool vs Lake.
Place a lake or pool
Section titled “Place a lake or pool”-
Drag
BP_DRW_LakeorBP_DRW_Poolfrom/DynamicRealWater/Blueprints/into the level. -
Move the actor so its location is at the water surface. The water fills Depth below that height.
-
Set its size: Radius for a lake, Width and Length for a pool (see Size).
-
Shape the ground or walls around it. A lake should sit in a basin whose shore rises above the water all the way round; a pool needs walls with collision (see Pool walls).
-
Pick its look with Visual Data (see Look).
-
Press Play. Anything with a Buoyancy Component that enters the water floats.
| Setting | Body | Default | Minimum | What it does |
|---|---|---|---|---|
| Radius | Lake | 5000 cm | 100 | Radius of the round surface. |
| Depth | Lake | 500 cm | 50 | How deep the water reaches below the surface. |
| Width | Pool | 500 cm | 50 | Size along the actor’s Y axis. |
| Length | Pool | 500 cm | 50 | Size along the actor’s X axis. |
| Depth | Pool | 200 cm | 10 | How deep the water reaches below the surface. |
Lake settings are under DRW WaterBody > Lake, pool settings under DRW WaterBody > Pool. Set the size in the level, not during play: the area that gets ripples and caustics is fixed when play begins, and rivers connected to the body are not rebuilt.
Both surfaces are flat. Floating objects, water queries and the underwater view all use the actor’s height as the water level everywhere on the body. Lake waves change how the surface looks, not its height.
Lake waves
Section titled “Lake waves”Lakes simulate small wind waves on their surface. They shape the surface normals and the caustics on the lake floor.
| Setting (DRW WaterBody > Lake > Waves) | Default | What it does |
|---|---|---|
| Enable Lake Waves | on | Runs the lake’s wave simulation. |
| Lake Wave Data | empty | The wave preset for the lake. Empty gives small built-in wind ripples. |
From the preset, a lake uses the cascades, the FFT resolution, the wind (speed and direction) and the normal strength. Swell, the global choppiness and the wave seed are ocean-only. The preset’s own Enable FFT switch is not used; use Enable Lake Waves.
- Lake waves are visual. The lake’s surface stays flat for floating objects and water queries.
- The caustics from lake waves follow the sun: the directional light used as the atmosphere sun, or else the first visible directional light.
- Lake waves run while you play or simulate, not in the editor viewport.
- Every lake and river that uses the same wave preset shares one simulation. Reusing a preset (a river preset works too) costs less than giving each body its own.
Pool walls
Section titled “Pool walls”A pool finds its walls by itself: wherever geometry is closer than Boundary Distance Threshold to the water surface, it treats the water as wall. Ripples from floating objects reflect off the walls instead of running through them, and the caustics they cast stop at the walls.
| Setting (DRW WaterBody > Pool) | Default | Range | What it does |
|---|---|---|---|
| Boundary Distance Threshold | 25 cm | 1 to 200 | How close geometry must be to the water surface to count as wall. |
| Boundary Bake Interval Seconds | 2 s | 0 to 30 | How often the walls are found again, so moving geometry is picked up. 0 stops the periodic update. |
Call Invalidate Boundary Mask (Blueprint) to find the walls again on the next frame, for example after moving a wall or opening a gate. Editing the pool’s size or Boundary Distance Threshold in the Details panel does this for you.
The pool’s surface itself is a rectangle of Width by Length. Size it so its edges sit inside your walls.
Visual Data (category DRW WaterBody > Visual) is a WB Visual data asset that sets the water’s look. BP_DRW_Lake uses DA_WB_Lake_Visual and BP_DRW_Pool uses DA_WB_Pool_Visual, both in /DynamicRealWater/Blueprints/WaterStates/Visuals/. Duplicate one to make your own; edits to the asset show on the water immediately. With no Visual Data, Map Check warns that the water keeps its material defaults.
| Group | Settings |
|---|---|
| Lighting | Roughness, Specular, Surface Specular, Phase, Phase 2, Refraction |
| Color | Absorption Color (the color of the light the water absorbs, seen from above and underwater alike), Absorption (how quickly light is absorbed with depth; also how far you can see underwater in this body), Scattering Color Strength, Base Color Strength, Hue Shift, General Strength, Ambient Strength, Backside Strength |
| Underwater | Underwater Scattering: light scattered per meter by particles underwater (haze, light shaft strength and distance blur). Clear pools about 0.005 to 0.05, lakes about 0.1 to 1. |
| Foam | Foam Alpha Contrast, Foam Strength, Foam Normal Strength, Foam Color |
| Caustics | Caustics Strength: caustics brightness on the floor and walls |
| Color Correction | Offset, Gain, Brightness, Contrast, Saturation |
Foam Texture and Foam Normal Texture set the foam pattern (defaults T_DRW_OceanFoam_BaseColor and T_DRW_OceanFoam_Normal). To swap them at runtime, call Set Foam Textures on the server; clients follow.
Common water body settings
Section titled “Common water body settings”| Setting | Category | Default | What it does |
|---|---|---|---|
| Enable Buoyancy | DRW WaterBody | on | The body holds floating objects. |
| Enable Interaction | DRW WaterBody > Interaction | on | Floating objects make ripples, wakes and impact rings on the surface. |
| Interaction Data Asset | DRW WaterBody > Interaction | DA_WB_Interaction | Ripple and wake settings. |
| Enable Caustics | DRW WaterBody > Caustics | on | Computes caustics for this body. Brightness is Caustics Strength on the Visual Data. |
| Enable Underwater | DRW WaterBody > Underwater | on | Shows the DRW underwater look when the camera dives into this body. |
| HLOD Material | DRW WaterBody > World Partition | empty | Material of this body’s far-distance HLOD. See World Partition. |
The ripples from floating objects cover the whole body. On a very large lake they are spread over a larger area, so each ripple is coarser than on a pool.
The underwater view needs no setup: when the level has an ocean or any water body with Enable Underwater, DRW adds its underwater component to the pawn each local player controls. This is Auto Add Underwater in Project Settings > Plugins > Dynamic Real Water, on by default.
Rivers flowing in and out
Section titled “Rivers flowing in and out”A river connects to a lake or pool by itself: a river whose last point ends in the water flows into it, and a river whose first point starts in the water flows out of it. The lake or pool switches to a material that shows the connection automatically.
A river flowing in:
- Its outflow continues as a current across the lake, spreading and slowing with distance. Floating objects in the lake are pushed by it.
- Its water color carries into the lake as a plume (the river’s Plume Color Strength). A lake shows the plumes of its first two inflowing rivers, also in the underwater view.
- The lake’s level is the river’s downstream water level: the river backs up to meet it.
A river flowing out:
- The lake draws a current toward the outlet, so floating objects drift to it.
- Past the shore, the river holds the water: floating objects there belong to the river and are carried down it.
- With Discharge Source set to From Lake, the lake’s level sets the river’s discharge: the higher the lake stands above the outlet, the more water flows out.
- The lake’s material marks the outlets of its first two outflowing rivers.
In the editor, moving a lake or pool, or changing a lake’s Radius or Depth, rebuilds the rivers connected to it.
Floating objects between lakes, pools, rivers and the ocean
Section titled “Floating objects between lakes, pools, rivers and the ocean”You do not wire anything: each water body decides which floating objects it holds, and hands them on when they leave.
- Entering: when an object with a Buoyancy Component overlaps a lake or pool (or a river’s channel), the body takes it over, and the object floats on that body’s surface and drifts with its current. A body also picks up objects already inside it when play starts.
- Leaving: when the object leaves the body, the body lets it go and passes it to any other water body it overlaps.
- Rivers: an object that leaves a river’s channel is let go. At its mouth a river hands objects to the river or lake downstream; at its source it hands them back to the lake it flows out of; at a junction objects pass between the tributary and the main river. A lake with an outflowing river hands objects past the shore to the river.
- The ocean: an object that no water body holds floats on the ocean, if the level has one. A water body always comes first: an object held by a lake or pool floats on it even where the ocean is also present. Near a river mouth, the river’s outflow pushes objects on the sea.
- Queries:
Get Water Surface At Locationanswers from a lake, pool or river at that spot first, and from the ocean otherwise.Get Water Body At Locationreturns the water body there, if any.
Example maps
Section titled “Example maps”| Map | What it shows |
|---|---|
| LakeMap | A World Partition map with a landscape, a lake, a BP_Runabout boat and a BP_WaterMaskingManager. Its lake uses the river look (DA_WB_River_Visual) and the river ripple preset (DA_DefaultRiver1) as Lake Wave Data. |
| PoolMap | A pool with a set of floating spheres (BP_FloatSphere) and a BP_WaterMaskingManager. |
| RiverMap_Outlet | Rivers connected to a lake. See Rivers. |
All maps are in /DynamicRealWater/Maps/.