Skip to content

Rivers

A DRW river is a spline. You draw where the water goes, tell the river how much water it carries, and DRW works out the rest: how deep and fast the water runs along the river, where it flows calmly and where it shoots, rapids, hydraulic jumps, standing waves, the current across the channel, foam and eddies. Floating objects ride the surface and drift with the current.

The river actor is DRW Water Body - River. The plugin ships it ready to place as BP_DRW_River in /DynamicRealWater/Blueprints/. Every setting on this page is in the river’s Details panel.

To see what discharge, roughness, slope and width do to the river, and which setting to change for which result, read River flow and its settings alongside this page.

  • A landscape is needed for the terrain tools: Apply Trace, Align To Terrain, Carve Landscape and bed obstacle detection read Unreal Landscape actors only. A river without a landscape still works: you place the points and set the widths yourself.
  • Carve Landscape needs a landscape with edit layers enabled.
  • Generate Mesh Distance Fields (Project Settings > Rendering) is needed for Distance Field Obstacles. Without it, Map Check and the Play In Editor log show: “Pools and rivers find their walls and obstacles from mesh distance fields, which are off.”
  • Moving foam, the ripple simulation and object ripples run while you Play or Simulate. The editor viewport shows the river surface and its still foam.
  1. Drag BP_DRW_River from /DynamicRealWater/Blueprints/ into the level (turn on Show Plugin Content in the Content Browser settings if you cannot see the folder). It starts with two spline points 20 m apart, 10 m wide, carrying 15 m³/s.

  2. Set Terrain Type (category DRW River) to match your terrain. See Terrain types.

  3. Shape the spline: select the river, select a spline point in the viewport, and Alt-drag to add points. The first point is the source and the last point is the mouth. Water always flows from the first point to the last.

  4. Fit the spline to the landscape with Apply Trace (trace a whole valley from a few points) or Align To Terrain (refine a spline you drew by hand).

  5. Set the flow under DRW Flow: Discharge Source, Discharge and Roughness. See Discharge and roughness.

  6. Tick Show Hydraulics Overlay (category DRW Debug) to check depth, speed and flow regime in the viewport. See Hydraulics overlay.

  7. Press Play.

The river rebuilds itself whenever you move a point or change a setting, so you see the result immediately.

Terrain Type tells the river what the ground under it is. It changes how the spline height is read and picks a matching Discharge Source when you change it.

Terrain TypeUse it whenThe spline isDischarge Source it picks
Draw Freely (default)There is no channel in the terrain. You draw the river where you want it.The river bed. With Carve Landscape on, the water surface.Manual
Sculpted RiverbedYou already sculpted a channel into the landscape. The ground is the bed and the water fills the channel.The river bed.Fill Channel
Real HeightmapThe landscape is real-world elevation data, where the river floor in the data is the measured water surface.Depends on Water Level (below).From Width

If the river starts inside a lake or pool, changing Terrain Type picks From Lake instead, unless the spline is the water surface (see below).

Real-world height data usually records the river as a flat floor at the water surface. Water Level says what to do with that floor:

Water LevelResult
On Floor (no carve) (default)The spline is the river bed and the water stands one depth above it. The landscape is not touched.
Real LevelThe spline is the water surface: the water sits on it and the bed is placed below it. Tick Carve Landscape with a rock-steep Bank Slope to also cut a visible underwater bed.

On a Real Heightmap river, Apply Trace places each point at the local water level in the data plus Bank Height, with either Water Level setting.

When the spline is the bed, and when it is the water surface

Section titled “When the spline is the bed, and when it is the water surface”
  • With Carve Landscape off (and not Real Heightmap with Real Level), each spline point sits on the bed at the lowest line of the channel, and DRW works out the water surface above it, including water backing up from a lake, the sea or a river downstream.
  • With Carve Landscape on, or Real Heightmap with Real Level, the spline is the water surface. The water follows the spline exactly and DRW places the bed the right depth below it.

Bed obstacle detection is skipped on Real Heightmap rivers, because their river floor is the water surface.

Per Point (category DRW River) holds one entry per spline point, in point order: entry 0 is the first point. Values between two points are interpolated along the spline.

Per Point settingDefaultRangeWhat it does
Override Discharge / Dischargeoff / 10 m³/s0.01 and upUses this point’s own discharge instead of the river-wide Discharge.
Override Roughness / Manning Roughnessoff / 0.0350.01 to 0.2Uses this point’s own roughness instead of the river-wide Roughness.
Depth Offset0 cm-1000 to 1000Lowers the bed at this point, giving deeper water. Negative raises it.
LockedoffAlign To Terrain leaves this point where it is (position and width).
Override WidthoffAlign To Terrain keeps this point’s Width instead of taking it from the detected banks.
Width1000 cm50 and upBank-to-bank channel width at this point.
Override Depth / Depthoff / 150 cm10 to 5000Forces the water depth here. Speed then follows from discharge and width (deeper is slower). It blends back to the river’s own depth towards points without an override.
Override Bank Slope / Bank Slopeoff / 0.60.1 to 20Carved bank steepness at this point, used by Carve Landscape.

Three buttons in the DRW River category edit the spline for you: Apply Trace, Align To Terrain and Reverse Flow. Their settings are under DRW Terrain Tools. Apply Trace and Align To Terrain read the landscape’s visible edit layers, except the DRW Rivers carve layer, so a carved river never traces its own carve.

Apply Trace finds the channel for you. You give it a source, a mouth and optional waypoints; it follows the lowest ground between them, measures the channel width, and replaces the spline with the traced channel.

  1. Put the first spline point on the water at the source and the last spline point at the mouth. Points in between are waypoints the trace must pass. Use as few as possible.

  2. Tick Show Trace Preview. The river traces the channel in the background whenever you move a point or change a Trace setting, and draws the result in the viewport:

    • cyan: the traced center line
    • blue: the detected banks
    • yellow dots: the spline points Apply Trace would create
    • orange arrows: the direction the water will flow

    Preview Points, Preview Width (median channel width, cm) and Preview Discharge (the discharge that width gives with From Width, m³/s) show the numbers. Nothing changes until you apply.

  3. Adjust the Trace settings until the preview follows the channel. If the trace takes a shortcut, add a waypoint where the river should go.

  4. Click Apply Trace. A “Tracing river…” notification appears, then “River traced”. The spline is replaced, each new point gets the measured Width, and Show Trace Preview turns itself off.

After the trace, the river also runs the flow-direction, discharge, bed and obstacle steps of Align To Terrain on the new points, keeping their traced positions and widths. With Discharge Source set to From Width, Discharge is set from the median width.

Apply Trace is one undo step: Ctrl+Z restores the previous spline.

Trace settings (category DRW Terrain Tools > Trace):

SettingDefaultRangeWhen to change it
Search Corridor10000 cm500 to 2000000How far the trace searches either side of the straight line between two consecutive points. When the route runs along the edge of the corridor, the trace widens it by itself. For wide meanders, raise it or add a waypoint.
Bank Height50 cm0 to 5000How much higher the ground must be to count as a bank. Ground connected to the river and within this height of its water level counts as water, so the width is the water, not the dry floor beside it. Also used by Align and Fill Channel (below).
Point Detail200 cm10 to 10000How far the spline may deviate from the traced center line, or its width from the measured width. Larger gives fewer points.
Cell Size (advanced)200 cm25 to 2000Terrain grid spacing of Apply Trace. Smaller follows narrow channels more closely; larger is faster. The preview may use a coarser grid, so it can differ slightly from the applied result.
Climb Penalty Scale (advanced)100 cm1 to 5000How willingly the trace climbs out of the channel. Smaller values keep it lower in the valley. Lower it if the trace cuts across low ridges.

Align To Terrain is for a spline you drew by hand. It keeps your route and adapts the river to the ground under it:

  1. If Flow Downhill is on and the spline was drawn uphill, it reverses the spline first.
  2. It adds points about Point Spacing apart (existing points are kept; new points take values between their neighbors’ per-point settings).
  3. It moves each point down onto the ground, and sideways onto the lowest line across the river where the ground rises at least Bank Height on both sides within Search Radius. Smoothing Passes evens out the sideways moves.
  4. It finds the banks where the ground rises above the water, sets each point’s Width from them (never below Min Width) and centers the point between them. It does this Iterations times, because a new width changes the water level, which moves the banks.
  5. Where the water would stand above the ground with no bank to hold it, it lowers the bed there (or the bump downstream that holds the water up) and eases the neighboring points down, keeping the slope gentler than Rapid Slope, so the river sits in the terrain. This step is skipped while the spline is the water surface.
  6. It detects bed obstacles (see Rocks and obstacles).

Points that are Locked are not moved or resized; points with Override Width keep their width. Points that lie in the water the river flows into (past its mouth) or flows out of (before the lake shore) are left alone, because that water’s level is not the river’s to fit.

With Discharge Source set to From Width, Align sets Discharge from the median width. With Fill Channel, Align sets each point’s own discharge (see below).

Align settings (category DRW Terrain Tools > Align):

SettingDefaultRangeWhat it does
Point Spacing1000 cm0 to 20000Adds points so they are about this far apart before aligning. 0 keeps the existing points. Not used by Apply Trace.
Search Radius2000 cm100 to 20000How far either side of each point Align searches for the lowest line and the banks.
Flow DownhillonReverses the spline when it was drawn uphill, so the river always flows down the terrain.
Min Width300 cm50 to 10000Narrowest width bank detection may set.
Search Step (advanced)25 cm5 to 500Terrain sampling step of the search.
Smoothing Passes (advanced)30 to 20Smoothing passes over the sideways moves; removes zigzags.
Iterations (advanced)31 to 10Rounds of bank detection.

The Output Log shows “Align To Terrain found no landscape under the river.” if no landscape covers the spline.

Reverse Flow swaps the source and the mouth: it reverses the spline points and their Per Point settings, so the water flows the other way. Align To Terrain with Flow Downhill on also flips a river drawn uphill.

Discharge is the volume of water the river carries, in m³/s. Together with width, roughness and bed slope it decides how deep and fast the water runs. Discharge Source (category DRW Flow) decides where the number comes from:

Discharge SourceWhat sets the dischargeUse it for
Manual (default)The Discharge you type.Draw Freely rivers and any river where you want a specific flow.
From WidthApply Trace and Align set Discharge from the channel’s median width: the wider the channel, the more water.Real Heightmap rivers, where the width in the data is the real width.
Fill ChannelAlign sets each point’s own discharge so the water fills the sculpted channel to Fill Level. Rims must be at least Bank Height high to count.Sculpted Riverbed rivers.
From LakeThe lake or pool the river flows out of: the higher the lake stands above the outlet, the more water flows out. Picked automatically the first time a river is found starting in a lake; a later choice you make is kept.Rivers that drain a lake or pool. See Flowing out of a lake or pool.
Setting (DRW Flow)DefaultRangeWhat it does
Discharge15 m³/s0.01 and upRiver-wide discharge, used by points without their own. Editable only with Manual; the other sources set it for you.
Fill Level0.80.05 to 0.95Water level as a fraction of the channel depth, from the bed to the lower rim. Shown only with Fill Channel.
Roughness0.040.01 to 0.2River-wide roughness of the bed and banks, used by points without their own. 0.03 for a clean channel, 0.05 weedy, 0.07 boulders.

More discharge gives deeper and faster water. More roughness slows the water, so the same discharge stands deeper. A river that runs too deep and slow for its look usually needs less roughness or a steeper bed; a wider channel also makes it shallower. A river that runs too shallow needs more discharge, a narrower channel or more roughness.

A river that other rivers flow into carries their discharge too: below each junction its discharge grows by the tributary’s discharge.

Carve Landscape (category DRW Terrain Tools > Carve) cuts the river into the landscape without changing your terrain data. The river adds a brush to a landscape edit layer named DRW Rivers (created if it does not exist). The brush shapes the terrain to the river and follows every spline or setting change live. Untick Carve Landscape and the terrain comes back exactly as it was.

  1. Make sure the landscape has edit layers enabled.

  2. Draw the river where the water surface should be. While carving, the spline is the water surface and the bed sits one depth below it. The carve never moves or rotates the spline.

  3. Tick Carve Landscape. A brush actor named after the river (<river label>_Carve) is created and added to the DRW Rivers layer.

  4. Set Bank Slope for what the banks are made of, then Freeboard, Bed Shape and Rim Rounding.

The carve does two things. Inside the channel it cuts the bed to the cross-section set by Bed Shape. Outside it, the banks rise at Bank Slope from the bank edge, Freeboard above the water, until they meet the ground. Where the ground is higher, the carve cuts down to the bank; where the ground is lower than the bank, it builds the bank up and slopes it back down to the ground.

SettingDefaultRangeWhat it does
Carve LandscapeoffTurns the carve brush on or off.
Bank Slope0.60.1 to 20Carved bank steepness (rise over run), used by points without their own Bank Slope. Set it by bank material: loose sand 0.5 to 0.7, soil 1 to 1.5, clay or rooted banks 2 to 4, rock 5 and above (gorges and canyons). Steeper keeps the carve close to the river; gentler cuts back into the terrain.
Freeboard100 cm0 to 1000Bank height above the water surface.
Bed Shape21 to 8Carved cross-section: 1 is a V, 2 a U, higher a flat bed with steeper banks.
Rim Rounding600 cm0 to 50000Width of the rounded rim where a carved wall meets the untouched terrain. 0 gives a sharp edge.
Max Wall Reach (advanced)10000 cm100 to 100000Farthest a carved wall may reach from the bank. Walls normally end where they meet the ground; this only bounds tall hillsides with gentle slopes.
Carve Brush (advanced, read-only)The brush actor that carves this river. Created and removed with Carve Landscape.

Rocks make a river look alive: the water splits around them, piles up in front, leaves a V-shaped wake of waves that stay in place, an eddy line and foam behind them, and sheds vortices that swing the wake from side to side. A submerged rock affects the surface less the deeper it sits; when fast, shallow water pours over it, it forms a hole and a boil behind it.

A river gets obstacles from three places.

Apply Trace and Align To Terrain scan the landscape under the river and turn bed bumps at least Min Height above the bed into obstacles. The results are listed in Detected Obstacles (each with Location, Radius and Height).

Setting (DRW Obstacles)DefaultRangeWhat it does
Min Height40 cm0 to 1000Bed bumps at least this high become obstacles. 0 turns detection off. Skipped on Real Heightmap rivers.
Detected ObstaclesThe obstacles found by the last Trace or Align. Editable.
Scan Spacing (advanced)50 cm10 to 500Terrain sampling step of the detection.
Min Separation (advanced)200 cm10 to 5000Detected obstacles closer than this keep only the tallest.

A River Rock Marker (DRW River Rock Marker) is an actor you place in the river. The plugin ships one ready to place: DRW_RiverRock in /DynamicRealWater/Blueprints/. Set its Rock Mesh to your own rock.

SettingDefaultRangeWhat it does
ModeAdd ObstacleAdd Obstacle: a rock here makes a wake. Suppress Detected: removes detected obstacles within Radius.
Rock MeshRock the marker shows. It has collision, so the river sees it as dry ground and the current flows around it.
Fit To MeshonTakes the radius, center and top from the Rock Mesh bounds, and the rock’s outline in the water from its collision, instead of Radius and Height. Needs a Rock Mesh.
Radius80 cm5 to 5000Obstacle radius, or the suppression radius. Set from the mesh when fitted.
Height100 cm1 to 5000Height above the river bed. Taller than the water depth means the rock breaks the surface. Ignored when fitted to a mesh. Add Obstacle only.

To move a detected obstacle, suppress it with a marker in Suppress Detected mode and add a new marker where it should be.

Moving or editing a marker updates only the part of each river it touches. This also works during play: moving, changing or destroying a marker at runtime updates the river, and markers replicate their movement. The marker’s Blueprint function Rebuild Rivers (game worlds only) forces a full rebuild of every river; you rarely need it.

Distance field obstacles (near the camera)

Section titled “Distance field obstacles (near the camera)”

With Distance Field Obstacles on (default), any mesh in the global distance field near the camera (rocks, piers, bridge pillars, boats, banks) reflects ripples and bends the current around it. This needs Generate Mesh Distance Fields in the project settings, and works only inside the interaction window that follows the camera (Interaction Window Size, see Advanced settings).

Setting (DRW Obstacles)DefaultRangeWhat it does
Distance Field ObstaclesonTurns the effect on or off.
Distance Field Threshold (advanced)25 cm1 to 200How close to a mesh the water surface counts as solid.
Distance Field Influence (advanced)300 cm10 to 3000How far from an obstacle the current is bent around it.
Distance Field Wake Length (advanced)800 cm50 to 5000Length of the slowed and reversed water behind an obstacle.
Distance Field Sample Height (advanced)50 cm5 to 500Height above the water at which meshes are looked for. Only geometry reaching this high counts, so the river bed never does. Never less than twice Distance Field Threshold.
Distance Field Side Acceleration (advanced)0.60 to 2How much faster the current runs past the sides of an obstacle, as a fraction of the river speed (1 is twice as fast at the widest point).
Distance Field Bake Interval (advanced)0.1 s0.02 to 10Time between updates while the window stays still, so moving objects are picked up. Moving the window always updates.
You wantUse
Rocks that are part of the landscapeBed bump detection (automatic with Trace and Align)
A rock mesh with a full wake, visible at any distance and identical for every playerA River Rock Marker with a Rock Mesh
To remove a detected obstacle you do not wantA River Rock Marker in Suppress Detected mode
Piers, pillars, moored boats or other meshes to deflect the water close to the playerDistance Field Obstacles
SettingDefaultRangeWhat it does
Obstacle Wave Strength (DRW Waves)0.30 to 2Height of obstacle waves per unit of submerged obstacle height.
Obstacle Wake Length (DRW Waves, advanced)121 to 100Wake length in obstacle radii. Faster water stretches it further.
Obstacle Flow Strength (DRW Flow)10 to 1How strongly obstacles bend the surface current: the flow splits around them and reverses in the near wake.
Vortex Shedding (DRW Flow)0.40 to 1Vortices shed behind obstacles: the wake swings side to side as it drifts downstream, carrying foam into alternating curls. Peak side speed as a fraction of the current; 0 gives straight wakes.
Obstacle Foam (DRW Foam)0.70 to 1Foam made by obstacle wakes and eddy lines.

With Connect Mouth on (default, category DRW Junction), the river joins the water its last point ends in. Flows Into (read-only) shows what it found.

Setting (DRW Junction)DefaultWhat it does
Connect MouthonJoins the river to the water its last point ends in: another river, a lake or pool, or the sea.
Mouth TargetemptyThe river, lake, pool or ocean Grid Manager this river flows into. Empty finds it from the last spline point.
Flows IntoThe water the river currently flows into.

With Mouth Target empty, the river looks, in this order, for:

  1. Another river whose channel contains the last spline point. See Junctions.
  2. A lake or pool whose water contains the last spline point.
  3. The ocean: if the river bed at its last point is below the height of the ocean’s Grid Manager actor (BP_DynamicRealWater), the river flows into the sea.

Near the mouth the river backs up to the level of the water it flows into (the lake, the sea or the main river), so it runs deep and slow there instead of dropping below that water.

Draw the last point a little way inside the lake or sea. The river finds the shoreline itself from the ground around its banks (anything with World Static collision, such as the landscape; without it, where the river has come down to the water’s level), carries on over the open water for a short plume, and fades out.

  • The river’s outflow continues as a current in the lake that spreads and slows with distance. Floating objects in the lake are pushed by it.
  • The lake shows the river’s current and its colored plume: the river’s water color carries into the lake, set by Plume Color Strength. A lake shows the plumes of its first two inflowing rivers.
  • Floating objects that leave the river at the mouth are handed to the lake.
  • The sea lies calm under the river and its plume, and its waves return over Sea Calm Length past them. 0 keeps waves everywhere.
  • The river’s outflow pushes floating objects on the sea near the mouth.
  • The ocean’s depth and shoreline treat the river channel upstream of the mouth as land, not as sea.
  • The sea shows the plume and calm water of up to eight rivers flowing into it.
Setting (DRW Junction)DefaultRangeWhat it does
Mouth Transition Length3000 cm0 to 50000Distance over which the river takes on the color and calm of the water it flows into, and leaves those of the lake it flows out of. 0 turns the transition off.
Mouth Blend Length500 cm50 to 10000Length over which the river fades into a lake or the sea at the end of its plume, and in from the lake it flows out of.
Plume Color Strength10 to 1How strongly the river’s color shows in the plume it carries into a lake or the sea.
Sea Calm Length2000 cm0 to 20000Distance past the river and its plume over which the sea’s waves return.

The underwater view follows the same transition: below the surface near a mouth or outlet, the underwater look fades toward the water the river joins or leaves over Mouth Transition Length.

A river can start in a lake or pool and drain it. With Connect Source on (default), the river joins the lake or pool its first spline point starts in. Flows From (read-only) shows what it found.

Setting (DRW Junction)DefaultWhat it does
Connect SourceonJoins the river to the lake or pool its first point starts in, so the river flows out of it.
Source TargetemptyThe lake or pool this river flows out of. Empty finds it from the first spline point.
Flows FromThe water the river currently flows out of.
  1. Put the first spline point inside the lake or pool, and draw the river out across its shore and down the outlet channel.

  2. Keep Discharge Source on From Lake (picked automatically the first time). The discharge then comes from how high the lake stands above the outlet sill, the highest point of the bed where the channel leaves the lake. Raise the lake, or lower the bed at the outlet with Depth Offset, for more flow.

  3. Check the result with the hydraulics overlay: up to the shore the river holds the lake’s level, then it spills over the sill and runs down the channel.

What happens automatically:

  • The river finds the shore: the first section where both banks rise above the lake level (World Static collision), or else where the river leaves the lake’s area.
  • The lake draws a current toward the outlet, so floating objects drift to it, and the river takes them over once they pass the shore.
  • The river’s surface starts in the lake and blends in over Mouth Blend Length; its look changes from the lake’s over Mouth Transition Length.

A river that ends inside another river’s channel becomes its tributary. The tributary’s surface comes down onto the main river across the bank and ends on it, and the main river reacts:

  • Below the junction, the main river carries the tributary’s discharge too.
  • The inflow pushes into the main channel as a jet, an eddy forms below the junction on the inflow side, and the water above the junction slows.
  • A mixing line forms between the two currents, with eddies rolling along it and foam on it.
  • The tributary backs up to the main river’s level at the junction.
  • The ripples on both rivers match across the seam.
  1. Draw the main river.

  2. Draw the tributary so its last point lies inside the main river’s channel (within its width). The tributary finds the main river by itself; set Mouth Target to the main river only to force it, which also accepts a last point on the main river’s bank overhang.

  3. Tune the junction on the main river: Confluence Flow Strength and Confluence Foam.

Setting on the main river (DRW Junction)DefaultRangeWhat it does
Confluence Flow Strength10 to 1How strongly rivers flowing into this one bend its current: inflow jet, eddy below the junction, slack water above it.
Confluence Foam0.70 to 1Foam on the mixing line and in the eddy.

Editing either river updates the other automatically.

The river’s surface follows its flow. Floating objects ride all of it.

  • Standing waves: waves that stay in place, in fast water that still flows calmly (Froude below 1 in the overlay), where the bed slope changes, below hydraulic jumps and where rapids end. Each train dies away after a set number of waves.
  • Cross-waves: the diamond pattern of shooting water (Froude above 1), started by width changes and bends.
  • Jump rollers: the raised, foaming roller where fast water slams into slower water (a hydraulic jump).
  • Bends: the surface tilts up toward the outer bank and drifts toward it.
Setting (DRW Waves)DefaultRangeWhat it does
Standing Wave Strength0.150 to 1Standing wave height per unit of depth where a wave train is fully started.
Cross Wave Strength0.10 to 1Cross-wave height per unit of depth where fully started by a width change or bend.
Jump Roller Strength0.50 to 2Roller height at hydraulic jumps, as a fraction of the jump height.
Standing Wave Slope Change (advanced)0.02 m/m0.001 to 1Change in bed slope that fully starts a standing wave train. Jumps and rapid exits always start one.
Standing Wave Train Length (advanced)60.5 to 50Standing wave trains die away over this many waves.
Standing Wave Max Length (advanced)3000 cm100 to 20000Standing waves longer than this fade out. Water close to shooting makes very long standing waves.
Cross Wave Width Change (advanced)0.05 cm/cm0.001 to 1Width change per unit length that fully starts cross-waves.
Cross Wave Train Length (advanced)40.5 to 50Cross-wave trains die away over this many diamonds.

Short standing waves need a fine surface mesh. For short, steep waves on a small river, lower Mesh Spacing (see Advanced settings).

Foam comes from the flow, so slow rivers stay clear and fast, steep or broken water turns white.

Foam source (DRW Foam)DefaultRangeWhere it appears
Rapid Foam0.60 to 1Fully aerated fast or steep flow. Slow rivers stay clear.
Jump Foam10 to 2The foaming roller of hydraulic jumps. Stronger jumps foam more.
Crest Foam0.50 to 1Standing wave crests steeper than Crest Foam Steepness.
Obstacle Foam0.70 to 1Obstacle wakes and eddy lines.
Bank Foam0.30 to 1Along the banks where the water is fast.
Crest Foam Steepness (advanced)0.150.01 to 1How steep a standing wave crest must be before it foams. Lower gives more crest foam.
Bank Foam Width (advanced)60 cm1 to 1000Width of the bank foam band.
Bank Foam Min Speed (advanced)120 cm/s0 to 2000Mean speed above which banks start to foam.
Foam Lifetime (advanced)5 s0.5 to 120Time carried foam survives before fading. Slow water carries it a short distance, fast water far.

Junction foam is Confluence Foam on the main river (see Junctions).

Close to the camera, foam moves with the water: it builds up where water breaks, rides the local current, gathers into lines where eddies push surface water together, clears where water wells up, and thins out with age. Farther water shows still foam. The foam follows the server clock, so every player sees the same foam.

Setting (DRW Foam > Foam Flow)DefaultRangeWhat it does
Foam Flow Spacing20 cm5 to 200Detail of the moving foam along and across the river. Smaller is sharper and costs more memory and GPU time.
Foam Active Radius15000 cm1000 to 100000River sections within this distance of the camera get moving foam.
Foam Eddy Gathering0.50 to 5How strongly eddies gather floating foam into drifting lines where surface water converges, and clear it where water wells up.
Foam Max Thickness31 to 10Most foam that can pile up in one place, as a multiple of the thickest fresh foam. Thicker foam lasts longer.
Foam Build Up Time0.75 s0.02 to 10Time for foam to build up where it is made. Short gives sudden white patches at the source; long makes foam grow as the water carries it through rough water.
Foam Drift Lifetime40 s1 to 600Time foam carried by the current survives. Whitewater at the sources does not use this; it exists only while the water breaks.
Foam Breaking Variation10 to 1How much breaking on crests, rollers and rapids flickers over time and space. 0 is steady.
Foam Boil Clearing30 to 20How strongly boils push foam away, leaving clean domes of upwelling water.
Foam Max Sections (advanced)161 to 64Most river sections with moving foam at once. Each section costs GPU memory, more on wide rivers and with a small Foam Flow Spacing.
Foam Section Length (advanced)2560 cm500 to 20000Length of one section of moving foam.
Foam Flow Step Rate (advanced)60 per second10 to 240Foam updates per second.
Setting (DRW Foam > Appearance)DefaultRangeWhat it does
Foam Coverage0.90 to 5How much of the surface a given amount of foam covers. Higher turns thin foam into wide white patches.
Foam Softness30.05 to 3Width of the transition at foam edges. Low gives crisp, broken patches; high gives soft, milky edges.
Whitewater Amount0.650 to 2How strongly breaking water shows where it forms (rapids, crests, rocks), separate from foam drifting downstream.
Foam Fade Age25 s0.5 to 300Age at which drifting foam has thinned to a sparse, broken pattern.
Foam Texture Detail0.40 to 1How much of the foam’s look comes from the foam texture (bubbles, lacing, color) instead of the wave shapes. 0 gives smooth white patches that follow the ripples.
Foam Texture Size5.12 m0.1 to 20Size of one repeat of the foam texture on the water.
Foam Patch Strength0.90 to 1How much the patch shapes come from foam carried by the current instead of the wave pattern.
Foam Patch Size1.5 m0.1 to 20Typical size of the patches breaking water makes, before the current stretches them.

The foam texture itself is Foam Texture and Foam Normal Texture (category DRW WaterBody > Visual, default T_DRW_OceanFoam_BaseColor and T_DRW_OceanFoam_Normal). To swap them at runtime, call Set Foam Textures on the server; clients follow.

The current across the river follows the real ground under the water: where the river finds ground with World Static collision under its surface (landscape, rock meshes), deep water runs faster, shallow water slower, and dry ground stays dry. Where it finds none, it uses a built-in profile that is fastest in the middle and slows toward the banks (Cross Profile Exponent), with the fastest water pushed toward the outer bank in bends (Bend Peak Shift). On top of that come bends, obstacle wakes, junctions and drifting eddies.

Setting (DRW Flow)DefaultRangeWhat it does
Turbulence Strength10 to 1Overall boil and surface-breakup strength.
Eddy Strength0.30 to 1Swirl of the eddies that drift with the current, as a fraction of local speed. Eddies swirl harder in turbulent water. 0 turns eddies off.
Eddy Size Per Depth (advanced)1.50.25 to 10Eddy size per unit of the river’s mean depth.
Bend Secondary Flow60 to 20Surface drift toward the outer bank in bends. 0 turns it off.
Turbulence Decay Length (advanced)2500 cm10 to 50000Distance over which turbulence below jumps and obstacles fades downstream.
Turbulence Speed Reference (advanced)300 cm/s10 to 3000The speed the river’s turbulence is measured against. Lower it to make a slower river look more turbulent; raise it to calm fast water.

Visual Data (category DRW WaterBody > Visual) is a WB Visual data asset (DRW_WBVisualDataAsset) with the water’s color, absorption, lighting and foam color. The river uses DA_WB_River_Visual by default (/DynamicRealWater/Blueprints/WaterStates/Visuals/). Duplicate it to make your own look. With no Visual Data, Map Check warns that the water keeps its material defaults.

Setting (DRW Surface)DefaultRangeWhat it does
Roughness Calm0.020 to 1Roughness of still, glassy water: pools, eddies and slack water near the banks. Low values give a sharp mirror.
Roughness Ripples0.150 to 1Roughness where the current runs fast and the ripples are fully developed.
Roughness Turbulent0.350 to 1Roughness of broken, churning water in rapids, jumps and below obstacles.
Roughness Turbulence Response10 to 10How quickly turbulence pushes the surface toward Roughness Turbulent. 0 ignores turbulence.
Specular0.250 to 1Strength of the reflection. 0.25 matches real water; higher looks glossier, lower more matte.

The river runs its own wave simulation for the fine ripples on its surface and the detail in its foam. It is separate from the ocean’s.

SettingDefaultWhat it does
Enable River FFT (DRW Surface)onRuns the river’s wave simulation. Each player decides for themselves (not replicated). Off costs no GPU time; the surface then has no ripple detail.
River Wave Data (DRW Preset)DA_DefaultRiver1Wave preset of the ripples, authored like an ocean wave preset. Empty uses built-in ripples.

To switch the ripples per player at runtime (for example off while the player is far from the river), call Set River FFT Enabled from Blueprint. Enable River FFT is read-only in Blueprint; use the function.

Every river (and every lake) that uses the same wave preset shares one simulation. Reusing one preset across your rivers costs less than giving each its own. The preset settings that apply are its cascades, FFT Resolution, wind, WPO Direction and Normal Strength. The preset’s own Enable FFT switch is not used by rivers; while it is off, the preset hides FFT Resolution, but rivers still use it.

Any actor with a Buoyancy Component that enters the river floats on its surface (including standing waves, rollers and obstacle wakes) and is carried by the local current. You do not wire anything: the river takes over objects that enter its channel and hands them on when they leave.

  • When an object leaves the river at its mouth, the river hands it to the river or lake downstream. On the sea, the object floats on the ocean, pushed by the river’s outflow near the mouth.
  • When an object in a lake drifts past the shore into an outflowing river, the river takes it over.
  • At a junction, objects pass between the tributary and the main river.
  • Enable Buoyancy (category DRW WaterBody, on by default): untick it and the river no longer holds floating objects.
Setting (DRW Advanced > Containment)DefaultRangeWhat it does
Containment Margin100 cm0 to 2000Extra distance around the channel within which objects are still handed to the river.
Volume Segment Length2000 cm200 to 20000Length of each overlap volume along the river.

To read the water from Blueprint, Get Water Surface At Location returns the river’s height, normal and current like any other water. For river values, use Get Hydraulics At Location (below).

Tick Show Hydraulics Overlay (category DRW Debug) to draw the river’s flow in the editor viewport. It is never shown in game. The river draws a colored line across the channel along its length, a thin white line along the center of the surface, a tall white line at every hydraulic jump, and a white outline around every obstacle.

Overlay ModeColors
DepthBlue for shallow water to red at Overlay Max Depth (default 300 cm).
SpeedBlue for slow water to red at Overlay Max Speed (default 400 cm/s).
Froude (default)Blue at 0 to red at 2 and above; 1, where calm water turns into shooting water, is halfway.
RegimeBlue: Subcritical (calm). Cyan: Subcritical and pooled (held up by water downstream or a bump in the bed). Yellow: Near Critical. Orange: Supercritical (shooting). Red: Rapid.

River flow and its settings explains what each color means and which settings move it.

FunctionWhat it does
Rebuild HydraulicsRebuilds the river: its flow, obstacles, surface and overlap volumes. Runs automatically on edit, BeginPlay and replication.
Get Hydraulics At LocationThe river’s values at a world location: its depth, speed, Froude number, flow regime, width and discharge, plus the signed offset from the center line (cm, positive to the right of the flow). Values are the section’s centerline surface and mean speed. False when the location does not project onto the river.
Get Hydraulics At DistanceThe same at a distance along the spline (cm).
Set River FFT EnabledTurns the river’s ripple simulation on or off for this player.
Samples (read-only property)The river’s values along its whole length, one entry per section. Blueprint only.

These rarely need changing.

Setting (DRW Advanced > Hydraulics)DefaultRangeWhat it does
Sample Spacing200 cm25 to 2000Distance between sections along the spline.
Slope Window1000 cm50 to 20000Length of bed over which the slope is measured. Longer ignores small bed bumps.
Min Bed Slope0.0001 m/m0.00001 to 0.01Flat or rising bed is treated as this slope.
Rapid Slope0.1 m/m0.01 to 2Bed slope above which a section counts as a rapid (red in the Regime overlay), unless calm water from downstream backs up over it.
Surface Smoothing500 cm0 to 10000Length over which the water surface is smoothed along the river.
Near Critical Band0.150 to 0.5How far around Froude 1 the water counts as Near Critical (yellow in the Regime overlay).
Cross Profile Exponent41 to 16Shape of the speed profile across the channel where no ground is found under the water. Higher gives a flatter middle and a sharper drop at the banks. Mean speed is kept.
Bend Peak Shift10 to 4In that built-in profile, how far bends push the fastest water toward the outer bank. Tighter bends push it further.
Max Bend Peak Shift0.60 to 0.9Cap on that shift, as a fraction of the half-width.
Setting (DRW Advanced > Mesh)DefaultRangeWhat it does
Mesh Spacing50 cm10 to 1000Surface mesh row spacing along the river. Lower it to keep short standing waves.
Mesh Columns162 to 128Surface mesh quads across the river. Raise it on wide rivers with rocks or cross-waves.
Bank Overhang100 cm0 to 50000How far the surface extends past each bank into the terrain. The material’s depth fade hides the edge.
Flow Texture Spacing50 cm10 to 1000Detail of the stored current and foam along and across the river.
Flow Texture Columns5124 to 2048Upper limit on that detail across the river (channel plus bank overhang).
Setting (DRW Advanced > Interaction)DefaultRangeWhat it does
Interaction Window Size4000 cm500 to 50000Width of the window that follows the camera of the first local player (in Simulate, the editor camera). Object ripples, distance field obstacles and river caustics exist inside it.
Interaction Window Resolution51264 to 2048Detail of that window. Applied at BeginPlay.
Flow Grid Resolution324 to 128Detail of the current that carries ripples downstream inside the window.

The river also has the settings every water body has: Enable Buoyancy, Enable Interaction and Interaction Data Asset (ripples and wakes from floating objects; empty uses built-in values), Enable Caustics (brightness is Caustics Strength on the Visual Data), Enable Underwater, and HLOD Material for World Partition.

River settings replicate: when the server changes one, every client follows, and settings that shape the river rebuild it on each client. If you change river settings from Blueprint at runtime, call Rebuild Hydraulics on the server to apply them there. Foam follows the server clock. Enable River FFT is the exception: each player sets it for themselves.

All in /DynamicRealWater/Maps/, each on a landscape:

MapWhat it shows
RiverMap_FastThree rivers (River_Run, River_Rapids, River_Meander) with DRW_RiverRock markers.
RiverMap_OutletFour rivers (River_Main, River_Tributary, River_Lake and River_Outlet, whose Discharge Source is From Lake), a lake and the ocean.