Skip to content

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.

LakePool
Blueprint to placeBP_DRW_LakeBP_DRW_Pool
Actor classDRW Water Body - LakeDRW Water Body - Pool
Surface shapeRoundRectangular
Wind ripplesYes (lake waves)No
Walls detected for ripples and causticsNoYes (needs mesh distance fields)
Default lookDA_WB_Lake_VisualDA_WB_Pool_Visual

Both Blueprints are in /DynamicRealWater/Blueprints/. For help choosing, see Pool vs Lake.

  1. Drag BP_DRW_Lake or BP_DRW_Pool from /DynamicRealWater/Blueprints/ into the level.

  2. Move the actor so its location is at the water surface. The water fills Depth below that height.

  3. Set its size: Radius for a lake, Width and Length for a pool (see Size).

  4. 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).

  5. Pick its look with Visual Data (see Look).

  6. Press Play. Anything with a Buoyancy Component that enters the water floats.

SettingBodyDefaultMinimumWhat it does
RadiusLake5000 cm100Radius of the round surface.
DepthLake500 cm50How deep the water reaches below the surface.
WidthPool500 cm50Size along the actor’s Y axis.
LengthPool500 cm50Size along the actor’s X axis.
DepthPool200 cm10How 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.

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)DefaultWhat it does
Enable Lake WavesonRuns the lake’s wave simulation.
Lake Wave DataemptyThe 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.

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)DefaultRangeWhat it does
Boundary Distance Threshold25 cm1 to 200How close geometry must be to the water surface to count as wall.
Boundary Bake Interval Seconds2 s0 to 30How 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.

GroupSettings
LightingRoughness, Specular, Surface Specular, Phase, Phase 2, Refraction
ColorAbsorption 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
UnderwaterUnderwater 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.
FoamFoam Alpha Contrast, Foam Strength, Foam Normal Strength, Foam Color
CausticsCaustics Strength: caustics brightness on the floor and walls
Color CorrectionOffset, 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.

SettingCategoryDefaultWhat it does
Enable BuoyancyDRW WaterBodyonThe body holds floating objects.
Enable InteractionDRW WaterBody > InteractiononFloating objects make ripples, wakes and impact rings on the surface.
Interaction Data AssetDRW WaterBody > InteractionDA_WB_InteractionRipple and wake settings.
Enable CausticsDRW WaterBody > CausticsonComputes caustics for this body. Brightness is Caustics Strength on the Visual Data.
Enable UnderwaterDRW WaterBody > UnderwateronShows the DRW underwater look when the camera dives into this body.
HLOD MaterialDRW WaterBody > World PartitionemptyMaterial 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.

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 Location answers from a lake, pool or river at that spot first, and from the ocean otherwise. Get Water Body At Location returns the water body there, if any.
MapWhat it shows
LakeMapA 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.
PoolMapA pool with a set of floating spheres (BP_FloatSphere) and a BP_WaterMaskingManager.
RiverMap_OutletRivers connected to a lake. See Rivers.

All maps are in /DynamicRealWater/Maps/.