Version:

IN THIS ARTICLE

River

River


This feature is in preview release and is subject to change.

Use the River component to carve riverbeds into the terrain and fill them with moving water. The River component uses 2D materials to create the illusion of flowing water. Optimally, you should use this component to create flat rivers along level terrain. To create rivers that run downhill, you can create a series of rivers separated by occasional waterfalls.

The River component requires the Spline component to shape its path along the x, y, and z axes. After you place a river, you can edit the points in the river’s spline.

To use the River component, you must enable the Roads and Rivers gem. For more information, see Enabling Gems.

[Example animation of the River component.]

Topics

River Properties

[River component properties.]

See the following River component properties.


NameDescription
Global widthSets the width of the river.
Per-Vertex Width ModifiersModifies the width at a specific vertex that is added to or subtracted from the Global width. For more information, see Modifying the River Width.
ElementsThe river’s vertices or points. Specify a positive or negative value for each vertex.
Segment lengthLength of each segment. Smaller segment lengths increase the polycount used for the river curvature. To create a river with smooth corners, specify lower values.
Tile lengthLength of the river texture. Adjust this parameter with Segment Length to avoid stretching textures.
Sort priorityPriority that you can set if the river intersects with another river.
View distance multiplierDistance at which the river is visible. The default value is 1. A higher value indicates a longer visibility distance.
Minimum specSpecifies the minimum system configuration level for the effect. If the configuration is lower than the set value, the river will not appear. Choose from Low, Medium, High, VeryHigh, and Never.Default value: Low
Tile widthWidth of the river texture.
DepthDepth of the river.
River materialMaterial file for the river. For more information, see Setting River Material Properties.
Cap at DepthIf selected, limit fog rendering to the river’s bottom. If deselected, fog continues to render below the specified depth of the river.
DensitySpecifies how dense the fog appears. Specify higher values for thicker fog.
ColorColor of the fog.
Affected by SunIf selected, the value for the Sun color parameter in the Time of Day Editor affects fog color of the river.
ShadowingSets the shadow darkness on the surface of the river. To enable this parameter, set the console variable r_FogShadowsWater to 1. For more information, see Using the Console Window.
Caustics - EnabledEnables caustics – Light rays that are reflected or refracted by the water’s surface.
IntensityIntensity of normals during caustics generation.
HeightDistance above water’s surface that caustics are visible.
TilingTiling of normals during caustic generation.
Physics - EnabledBind river with CryPhysics.
SpeedDefines how fast physicalized objects are moved along the river. Negative values move objects in the opposite direction.
Border widthSpecifies the width of the slope on the borders of the river.
Embankment heightDefines the height of the slopes on the borders of the river. If the river is at ground level, specify an embankment height to make the river appear to flow.
Depth of the river bedDefines the depth of the ditch beneath the river.
River bed width offsetDefines the width of the riverbed relative to the river’s width. A value of 0 makes the riverbed the same width as the river. A value of -1 makes the riverbed one meter narrower, and so on.
Erase widthDistance from the river edges in which the vegetation should be removed. Set the parameter to 0 to remove only vegetation that is on the river. Specify positive values to remove vegetation in a wider border from the river’s edge. Specify negative values to leave some vegetation within the borders of the river. For more information, see Erasing River Vegetation.
Erase varianceRandomizes the removal of vegetation so that the edge looks more natural.