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.
Before you start
Section titled “Before you start”- 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.
Place your first river
Section titled “Place your first river”-
Drag
BP_DRW_Riverfrom/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. -
Set Terrain Type (category DRW River) to match your terrain. See Terrain types.
-
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.
-
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).
-
Set the flow under DRW Flow: Discharge Source, Discharge and Roughness. See Discharge and roughness.
-
Tick Show Hydraulics Overlay (category DRW Debug) to check depth, speed and flow regime in the viewport. See Hydraulics overlay.
-
Press Play.
The river rebuilds itself whenever you move a point or change a setting, so you see the result immediately.
Terrain types
Section titled “Terrain types”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 Type | Use it when | The spline is | Discharge 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 Riverbed | You already sculpted a channel into the landscape. The ground is the bed and the water fills the channel. | The river bed. | Fill Channel |
| Real Heightmap | The 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).
Water Level (Real Heightmap only)
Section titled “Water Level (Real Heightmap only)”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 Level | Result |
|---|---|
| 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 Level | The 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.
The spline and per-point settings
Section titled “The spline and per-point settings”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 setting | Default | Range | What it does |
|---|---|---|---|
| Override Discharge / Discharge | off / 10 m³/s | 0.01 and up | Uses this point’s own discharge instead of the river-wide Discharge. |
| Override Roughness / Manning Roughness | off / 0.035 | 0.01 to 0.2 | Uses this point’s own roughness instead of the river-wide Roughness. |
| Depth Offset | 0 cm | -1000 to 1000 | Lowers the bed at this point, giving deeper water. Negative raises it. |
| Locked | off | Align To Terrain leaves this point where it is (position and width). | |
| Override Width | off | Align To Terrain keeps this point’s Width instead of taking it from the detected banks. | |
| Width | 1000 cm | 50 and up | Bank-to-bank channel width at this point. |
| Override Depth / Depth | off / 150 cm | 10 to 5000 | Forces 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 Slope | off / 0.6 | 0.1 to 20 | Carved bank steepness at this point, used by Carve Landscape. |
Fit the river to the landscape
Section titled “Fit the river to the 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
Section titled “Apply Trace”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.
-
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.
-
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.
-
Adjust the Trace settings until the preview follows the channel. If the trace takes a shortcut, add a waypoint where the river should go.
-
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):
| Setting | Default | Range | When to change it |
|---|---|---|---|
| Search Corridor | 10000 cm | 500 to 2000000 | How 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 Height | 50 cm | 0 to 5000 | How 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 Detail | 200 cm | 10 to 10000 | How 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 cm | 25 to 2000 | Terrain 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 cm | 1 to 5000 | How 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
Section titled “Align To Terrain”Align To Terrain is for a spline you drew by hand. It keeps your route and adapts the river to the ground under it:
- If Flow Downhill is on and the spline was drawn uphill, it reverses the spline first.
- It adds points about Point Spacing apart (existing points are kept; new points take values between their neighbors’ per-point settings).
- 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.
- 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.
- 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.
- 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):
| Setting | Default | Range | What it does |
|---|---|---|---|
| Point Spacing | 1000 cm | 0 to 20000 | Adds points so they are about this far apart before aligning. 0 keeps the existing points. Not used by Apply Trace. |
| Search Radius | 2000 cm | 100 to 20000 | How far either side of each point Align searches for the lowest line and the banks. |
| Flow Downhill | on | Reverses the spline when it was drawn uphill, so the river always flows down the terrain. | |
| Min Width | 300 cm | 50 to 10000 | Narrowest width bank detection may set. |
| Search Step (advanced) | 25 cm | 5 to 500 | Terrain sampling step of the search. |
| Smoothing Passes (advanced) | 3 | 0 to 20 | Smoothing passes over the sideways moves; removes zigzags. |
| Iterations (advanced) | 3 | 1 to 10 | Rounds of bank detection. |
The Output Log shows “Align To Terrain found no landscape under the river.” if no landscape covers the spline.
Reverse Flow
Section titled “Reverse Flow”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 and roughness
Section titled “Discharge and roughness”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 Source | What sets the discharge | Use it for |
|---|---|---|
| Manual (default) | The Discharge you type. | Draw Freely rivers and any river where you want a specific flow. |
| From Width | Apply 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 Channel | Align 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 Lake | The 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) | Default | Range | What it does |
|---|---|---|---|
| Discharge | 15 m³/s | 0.01 and up | River-wide discharge, used by points without their own. Editable only with Manual; the other sources set it for you. |
| Fill Level | 0.8 | 0.05 to 0.95 | Water level as a fraction of the channel depth, from the bed to the lower rim. Shown only with Fill Channel. |
| Roughness | 0.04 | 0.01 to 0.2 | River-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
Section titled “Carve Landscape”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.
-
Make sure the landscape has edit layers enabled.
-
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.
-
Tick Carve Landscape. A brush actor named after the river (
<river label>_Carve) is created and added to the DRW Rivers layer. -
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.
| Setting | Default | Range | What it does |
|---|---|---|---|
| Carve Landscape | off | Turns the carve brush on or off. | |
| Bank Slope | 0.6 | 0.1 to 20 | Carved 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. |
| Freeboard | 100 cm | 0 to 1000 | Bank height above the water surface. |
| Bed Shape | 2 | 1 to 8 | Carved cross-section: 1 is a V, 2 a U, higher a flat bed with steeper banks. |
| Rim Rounding | 600 cm | 0 to 50000 | Width of the rounded rim where a carved wall meets the untouched terrain. 0 gives a sharp edge. |
| Max Wall Reach (advanced) | 10000 cm | 100 to 100000 | Farthest 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 and obstacles
Section titled “Rocks and obstacles”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.
Bed bumps (detected)
Section titled “Bed bumps (detected)”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) | Default | Range | What it does |
|---|---|---|---|
| Min Height | 40 cm | 0 to 1000 | Bed bumps at least this high become obstacles. 0 turns detection off. Skipped on Real Heightmap rivers. |
| Detected Obstacles | The obstacles found by the last Trace or Align. Editable. | ||
| Scan Spacing (advanced) | 50 cm | 10 to 500 | Terrain sampling step of the detection. |
| Min Separation (advanced) | 200 cm | 10 to 5000 | Detected obstacles closer than this keep only the tallest. |
River Rock Markers
Section titled “River Rock Markers”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.
| Setting | Default | Range | What it does |
|---|---|---|---|
| Mode | Add Obstacle | Add Obstacle: a rock here makes a wake. Suppress Detected: removes detected obstacles within Radius. | |
| Rock Mesh | Rock the marker shows. It has collision, so the river sees it as dry ground and the current flows around it. | ||
| Fit To Mesh | on | Takes 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. | |
| Radius | 80 cm | 5 to 5000 | Obstacle radius, or the suppression radius. Set from the mesh when fitted. |
| Height | 100 cm | 1 to 5000 | Height 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) | Default | Range | What it does |
|---|---|---|---|
| Distance Field Obstacles | on | Turns the effect on or off. | |
| Distance Field Threshold (advanced) | 25 cm | 1 to 200 | How close to a mesh the water surface counts as solid. |
| Distance Field Influence (advanced) | 300 cm | 10 to 3000 | How far from an obstacle the current is bent around it. |
| Distance Field Wake Length (advanced) | 800 cm | 50 to 5000 | Length of the slowed and reversed water behind an obstacle. |
| Distance Field Sample Height (advanced) | 50 cm | 5 to 500 | Height 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.6 | 0 to 2 | How 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 s | 0.02 to 10 | Time between updates while the window stays still, so moving objects are picked up. Moving the window always updates. |
Which one to use
Section titled “Which one to use”| You want | Use |
|---|---|
| Rocks that are part of the landscape | Bed bump detection (automatic with Trace and Align) |
| A rock mesh with a full wake, visible at any distance and identical for every player | A River Rock Marker with a Rock Mesh |
| To remove a detected obstacle you do not want | A River Rock Marker in Suppress Detected mode |
| Piers, pillars, moored boats or other meshes to deflect the water close to the player | Distance Field Obstacles |
Wake settings
Section titled “Wake settings”| Setting | Default | Range | What it does |
|---|---|---|---|
| Obstacle Wave Strength (DRW Waves) | 0.3 | 0 to 2 | Height of obstacle waves per unit of submerged obstacle height. |
| Obstacle Wake Length (DRW Waves, advanced) | 12 | 1 to 100 | Wake length in obstacle radii. Faster water stretches it further. |
| Obstacle Flow Strength (DRW Flow) | 1 | 0 to 1 | How strongly obstacles bend the surface current: the flow splits around them and reverses in the near wake. |
| Vortex Shedding (DRW Flow) | 0.4 | 0 to 1 | Vortices 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.7 | 0 to 1 | Foam made by obstacle wakes and eddy lines. |
Where the river ends: mouths
Section titled “Where the river ends: mouths”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) | Default | What it does |
|---|---|---|
| Connect Mouth | on | Joins the river to the water its last point ends in: another river, a lake or pool, or the sea. |
| Mouth Target | empty | The river, lake, pool or ocean Grid Manager this river flows into. Empty finds it from the last spline point. |
| Flows Into | The water the river currently flows into. |
With Mouth Target empty, the river looks, in this order, for:
- Another river whose channel contains the last spline point. See Junctions.
- A lake or pool whose water contains the last spline point.
- 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.
Into a lake or pool
Section titled “Into a lake or pool”- 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.
Into the sea
Section titled “Into the sea”- 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.
Look and transition settings
Section titled “Look and transition settings”| Setting (DRW Junction) | Default | Range | What it does |
|---|---|---|---|
| Mouth Transition Length | 3000 cm | 0 to 50000 | Distance 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 Length | 500 cm | 50 to 10000 | Length 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 Strength | 1 | 0 to 1 | How strongly the river’s color shows in the plume it carries into a lake or the sea. |
| Sea Calm Length | 2000 cm | 0 to 20000 | Distance 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.
Flowing out of a lake or pool
Section titled “Flowing out of a lake or pool”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) | Default | What it does |
|---|---|---|
| Connect Source | on | Joins the river to the lake or pool its first point starts in, so the river flows out of it. |
| Source Target | empty | The lake or pool this river flows out of. Empty finds it from the first spline point. |
| Flows From | The water the river currently flows out of. |
-
Put the first spline point inside the lake or pool, and draw the river out across its shore and down the outlet channel.
-
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.
-
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.
Junctions
Section titled “Junctions”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.
-
Draw the main river.
-
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.
-
Tune the junction on the main river: Confluence Flow Strength and Confluence Foam.
| Setting on the main river (DRW Junction) | Default | Range | What it does |
|---|---|---|---|
| Confluence Flow Strength | 1 | 0 to 1 | How strongly rivers flowing into this one bend its current: inflow jet, eddy below the junction, slack water above it. |
| Confluence Foam | 0.7 | 0 to 1 | Foam on the mixing line and in the eddy. |
Editing either river updates the other automatically.
Waves on the river surface
Section titled “Waves on the river surface”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) | Default | Range | What it does |
|---|---|---|---|
| Standing Wave Strength | 0.15 | 0 to 1 | Standing wave height per unit of depth where a wave train is fully started. |
| Cross Wave Strength | 0.1 | 0 to 1 | Cross-wave height per unit of depth where fully started by a width change or bend. |
| Jump Roller Strength | 0.5 | 0 to 2 | Roller height at hydraulic jumps, as a fraction of the jump height. |
| Standing Wave Slope Change (advanced) | 0.02 m/m | 0.001 to 1 | Change in bed slope that fully starts a standing wave train. Jumps and rapid exits always start one. |
| Standing Wave Train Length (advanced) | 6 | 0.5 to 50 | Standing wave trains die away over this many waves. |
| Standing Wave Max Length (advanced) | 3000 cm | 100 to 20000 | Standing waves longer than this fade out. Water close to shooting makes very long standing waves. |
| Cross Wave Width Change (advanced) | 0.05 cm/cm | 0.001 to 1 | Width change per unit length that fully starts cross-waves. |
| Cross Wave Train Length (advanced) | 4 | 0.5 to 50 | Cross-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) | Default | Range | Where it appears |
|---|---|---|---|
| Rapid Foam | 0.6 | 0 to 1 | Fully aerated fast or steep flow. Slow rivers stay clear. |
| Jump Foam | 1 | 0 to 2 | The foaming roller of hydraulic jumps. Stronger jumps foam more. |
| Crest Foam | 0.5 | 0 to 1 | Standing wave crests steeper than Crest Foam Steepness. |
| Obstacle Foam | 0.7 | 0 to 1 | Obstacle wakes and eddy lines. |
| Bank Foam | 0.3 | 0 to 1 | Along the banks where the water is fast. |
| Crest Foam Steepness (advanced) | 0.15 | 0.01 to 1 | How steep a standing wave crest must be before it foams. Lower gives more crest foam. |
| Bank Foam Width (advanced) | 60 cm | 1 to 1000 | Width of the bank foam band. |
| Bank Foam Min Speed (advanced) | 120 cm/s | 0 to 2000 | Mean speed above which banks start to foam. |
| Foam Lifetime (advanced) | 5 s | 0.5 to 120 | Time 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).
Moving foam near the camera
Section titled “Moving foam near the camera”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) | Default | Range | What it does |
|---|---|---|---|
| Foam Flow Spacing | 20 cm | 5 to 200 | Detail of the moving foam along and across the river. Smaller is sharper and costs more memory and GPU time. |
| Foam Active Radius | 15000 cm | 1000 to 100000 | River sections within this distance of the camera get moving foam. |
| Foam Eddy Gathering | 0.5 | 0 to 5 | How strongly eddies gather floating foam into drifting lines where surface water converges, and clear it where water wells up. |
| Foam Max Thickness | 3 | 1 to 10 | Most foam that can pile up in one place, as a multiple of the thickest fresh foam. Thicker foam lasts longer. |
| Foam Build Up Time | 0.75 s | 0.02 to 10 | Time 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 Lifetime | 40 s | 1 to 600 | Time foam carried by the current survives. Whitewater at the sources does not use this; it exists only while the water breaks. |
| Foam Breaking Variation | 1 | 0 to 1 | How much breaking on crests, rollers and rapids flickers over time and space. 0 is steady. |
| Foam Boil Clearing | 3 | 0 to 20 | How strongly boils push foam away, leaving clean domes of upwelling water. |
| Foam Max Sections (advanced) | 16 | 1 to 64 | Most 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 cm | 500 to 20000 | Length of one section of moving foam. |
| Foam Flow Step Rate (advanced) | 60 per second | 10 to 240 | Foam updates per second. |
Foam appearance
Section titled “Foam appearance”| Setting (DRW Foam > Appearance) | Default | Range | What it does |
|---|---|---|---|
| Foam Coverage | 0.9 | 0 to 5 | How much of the surface a given amount of foam covers. Higher turns thin foam into wide white patches. |
| Foam Softness | 3 | 0.05 to 3 | Width of the transition at foam edges. Low gives crisp, broken patches; high gives soft, milky edges. |
| Whitewater Amount | 0.65 | 0 to 2 | How strongly breaking water shows where it forms (rapids, crests, rocks), separate from foam drifting downstream. |
| Foam Fade Age | 25 s | 0.5 to 300 | Age at which drifting foam has thinned to a sparse, broken pattern. |
| Foam Texture Detail | 0.4 | 0 to 1 | How 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 Size | 5.12 m | 0.1 to 20 | Size of one repeat of the foam texture on the water. |
| Foam Patch Strength | 0.9 | 0 to 1 | How much the patch shapes come from foam carried by the current instead of the wave pattern. |
| Foam Patch Size | 1.5 m | 0.1 to 20 | Typical 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.
Current, eddies and turbulence
Section titled “Current, eddies and turbulence”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) | Default | Range | What it does |
|---|---|---|---|
| Turbulence Strength | 1 | 0 to 1 | Overall boil and surface-breakup strength. |
| Eddy Strength | 0.3 | 0 to 1 | Swirl 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.5 | 0.25 to 10 | Eddy size per unit of the river’s mean depth. |
| Bend Secondary Flow | 6 | 0 to 20 | Surface drift toward the outer bank in bends. 0 turns it off. |
| Turbulence Decay Length (advanced) | 2500 cm | 10 to 50000 | Distance over which turbulence below jumps and obstacles fades downstream. |
| Turbulence Speed Reference (advanced) | 300 cm/s | 10 to 3000 | The speed the river’s turbulence is measured against. Lower it to make a slower river look more turbulent; raise it to calm fast water. |
Surface look and ripples
Section titled “Surface look and ripples”Visual Data
Section titled “Visual Data”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.
Surface roughness and reflection
Section titled “Surface roughness and reflection”| Setting (DRW Surface) | Default | Range | What it does |
|---|---|---|---|
| Roughness Calm | 0.02 | 0 to 1 | Roughness of still, glassy water: pools, eddies and slack water near the banks. Low values give a sharp mirror. |
| Roughness Ripples | 0.15 | 0 to 1 | Roughness where the current runs fast and the ripples are fully developed. |
| Roughness Turbulent | 0.35 | 0 to 1 | Roughness of broken, churning water in rapids, jumps and below obstacles. |
| Roughness Turbulence Response | 1 | 0 to 10 | How quickly turbulence pushes the surface toward Roughness Turbulent. 0 ignores turbulence. |
| Specular | 0.25 | 0 to 1 | Strength of the reflection. 0.25 matches real water; higher looks glossier, lower more matte. |
Ripples
Section titled “Ripples”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.
| Setting | Default | What it does |
|---|---|---|
| Enable River FFT (DRW Surface) | on | Runs 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_DefaultRiver1 | Wave 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.
Floating objects and the current
Section titled “Floating objects and the current”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) | Default | Range | What it does |
|---|---|---|---|
| Containment Margin | 100 cm | 0 to 2000 | Extra distance around the channel within which objects are still handed to the river. |
| Volume Segment Length | 2000 cm | 200 to 20000 | Length 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).
Hydraulics overlay
Section titled “Hydraulics overlay”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 Mode | Colors |
|---|---|
| Depth | Blue for shallow water to red at Overlay Max Depth (default 300 cm). |
| Speed | Blue 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. |
| Regime | Blue: 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.
Blueprint functions
Section titled “Blueprint functions”| Function | What it does |
|---|---|
| Rebuild Hydraulics | Rebuilds the river: its flow, obstacles, surface and overlap volumes. Runs automatically on edit, BeginPlay and replication. |
| Get Hydraulics At Location | The 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 Distance | The same at a distance along the spline (cm). |
| Set River FFT Enabled | Turns 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. |
Advanced settings
Section titled “Advanced settings”These rarely need changing.
| Setting (DRW Advanced > Hydraulics) | Default | Range | What it does |
|---|---|---|---|
| Sample Spacing | 200 cm | 25 to 2000 | Distance between sections along the spline. |
| Slope Window | 1000 cm | 50 to 20000 | Length of bed over which the slope is measured. Longer ignores small bed bumps. |
| Min Bed Slope | 0.0001 m/m | 0.00001 to 0.01 | Flat or rising bed is treated as this slope. |
| Rapid Slope | 0.1 m/m | 0.01 to 2 | Bed slope above which a section counts as a rapid (red in the Regime overlay), unless calm water from downstream backs up over it. |
| Surface Smoothing | 500 cm | 0 to 10000 | Length over which the water surface is smoothed along the river. |
| Near Critical Band | 0.15 | 0 to 0.5 | How far around Froude 1 the water counts as Near Critical (yellow in the Regime overlay). |
| Cross Profile Exponent | 4 | 1 to 16 | Shape 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 Shift | 1 | 0 to 4 | In that built-in profile, how far bends push the fastest water toward the outer bank. Tighter bends push it further. |
| Max Bend Peak Shift | 0.6 | 0 to 0.9 | Cap on that shift, as a fraction of the half-width. |
| Setting (DRW Advanced > Mesh) | Default | Range | What it does |
|---|---|---|---|
| Mesh Spacing | 50 cm | 10 to 1000 | Surface mesh row spacing along the river. Lower it to keep short standing waves. |
| Mesh Columns | 16 | 2 to 128 | Surface mesh quads across the river. Raise it on wide rivers with rocks or cross-waves. |
| Bank Overhang | 100 cm | 0 to 50000 | How far the surface extends past each bank into the terrain. The material’s depth fade hides the edge. |
| Flow Texture Spacing | 50 cm | 10 to 1000 | Detail of the stored current and foam along and across the river. |
| Flow Texture Columns | 512 | 4 to 2048 | Upper limit on that detail across the river (channel plus bank overhang). |
| Setting (DRW Advanced > Interaction) | Default | Range | What it does |
|---|---|---|---|
| Interaction Window Size | 4000 cm | 500 to 50000 | Width 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 Resolution | 512 | 64 to 2048 | Detail of that window. Applied at BeginPlay. |
| Flow Grid Resolution | 32 | 4 to 128 | Detail 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.
Multiplayer
Section titled “Multiplayer”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.
Example maps
Section titled “Example maps”All in /DynamicRealWater/Maps/, each on a landscape:
| Map | What it shows |
|---|---|
| RiverMap_Fast | Three rivers (River_Run, River_Rapids, River_Meander) with DRW_RiverRock markers. |
| RiverMap_Outlet | Four rivers (River_Main, River_Tributary, River_Lake and River_Outlet, whose Discharge Source is From Lake), a lake and the ocean. |