Skip to content

Commit b88137f

Browse files
committed
Added example output of the erosion algorithm
1 parent 0e6f48a commit b88137f

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,35 @@ This implementation is inspired by [Hans Theobald Beyer](https://www.firespark.d
66
* Made for 2d maps of floats ( `std::vector<std::vector<float> >` )
77
* The map can be any width and height (not limited to a square)
88

9+
## Example
10+
11+
Input height map (1024x1024) of simplex noise:
12+
![Input for erosion process](https://github.com/guydols/HydraulicErosion/blob/master/img/input.png)
13+
14+
Output height map with erosion config (32768 droplets of rain):
15+
16+
```
17+
seed = 1337;
18+
numIterations = 32768;
19+
erosionRadius = 4;
20+
inertia = .3f;
21+
sedimentCapacityFactor = 4;
22+
minSedimentCapacity = .01f;
23+
erodeSpeed = .8f;
24+
depositSpeed = .8f;
25+
evaporateSpeed = .01f;
26+
gravity = 10;
27+
maxDropletLifetime = 128;
28+
initialWaterVolume = 1;
29+
initialVelocity = 1;
30+
mapWidth = 1024;
31+
mapHeight = 1024;
32+
```
33+
34+
![Output of erosion process](https://github.com/guydols/HydraulicErosion/blob/master/img/output.png)
35+
936
## TODO
1037

11-
* Make distribution of droplets configurable (uniform, normal, ...)
38+
* ~~Make distribution of droplets configurable (uniform, normal, ...)~~
1239
* Memory and CPU cycle optimizations
13-
* Design a multi threaded solution (press x to doubt)
40+
* Optimize erosion brush (unnecessary building of brush)

0 commit comments

Comments
 (0)