File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,35 @@ This implementation is inspired by [Hans Theobald Beyer](https://www.firespark.d
6
6
* Made for 2d maps of floats ( ` std::vector<std::vector<float> > ` )
7
7
* The map can be any width and height (not limited to a square)
8
8
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
+
9
36
## TODO
10
37
11
- * Make distribution of droplets configurable (uniform, normal, ...)
38
+ * ~~ Make distribution of droplets configurable (uniform, normal, ...)~~
12
39
* Memory and CPU cycle optimizations
13
- * Design a multi threaded solution (press x to doubt )
40
+ * Optimize erosion brush (unnecessary building of brush )
You can’t perform that action at this time.
0 commit comments