|
HighMap library (C++)
|
This document provides a comparative analysis of the three primary hydraulic erosion approaches implemented in HighMap:
The visualization and benchmarks below are produced by ex_hydraulic_comparison.cpp.
The following banner shows the original un-eroded conical terrain alongside the result of each solver applied to the same input heightfield:

Left to right: (1) Original un-eroded terrain, (2) hydraulic_particle, (3) hydraulic_stream_log, (4) hydraulic_mise.
The net erosion maps ($z_{\text{before}} - z \ge 0$) highlight the spatial distribution and channelization patterns of each model:

Left to right: (1) hydraulic_particle erosion delta, (2) hydraulic_stream_log erosion delta, (3) hydraulic_mise erosion delta.
| Feature | hydraulic_particle | hydraulic_stream_log | hydraulic_mise |
|---|---|---|---|
| Model Type | Lagrangian (discrete droplets) | Eulerian (raster flow accumulation) | Topological drainage graph & implicit PDE |
| Primary Kinematics | Droplet advection, velocity, inertia | $D_\infty$ continuous facet routing | Priority flood, receiver graph routing |
| Discharge Scaling | Droplet volume & kinetic energy | Logarithmic discharge $\log_{10}(A)$ | Power-law area $A^m$ |
| Deposition Mechanism | Bilinear capacity drop & talus bank collapse | Synthetic hole filling & gradient blending | Equilibrium slope $S_{\text{eq}}(A)$ & lake filling |
| Visual Structure | Deep meandering rills, braided gullies | Broad dendritic river corridors | Geologically realistic valleys, alluvial plains, scarp retreat |
| Execution Engine | GPU (OpenCL) | GPU (OpenCL) & OpenMP | Multi-threaded CPU (OpenMP) |
| Artifact Vulnerability | Droplet streaks if iteration count is low | Minor contour alignment if un-warped | None (domain-warped multiscale scheduling) |
For exhaustive equations, trajectory kinematics, and C++ API signatures: