Fast Erosion Simulation Code
On this page, you can see some preliminary results from an erosion function I am developing for my Ategeros program.
The function used to generate the heightfields for these pictures is and editing function modifying an existing data set. Main idea is to simulate the shape of ridges in mountain regions with sharp edges on the top. I am not yet sure how this function will develop and if it will be useful for practical use. Any comments and suggestions are welcome.
You can click on the small images to get a larger version
The first sequence shows some of the first tries with diverse parameters.
|
This is the original heightfield generated using fourier synthesis. (21k) |
|
|
This picture shows the results after about 15 runs of the erosion algorithm and smoothing between. Each run takes about 800 milliseconds on a 256x256 matrix (k6/500 CPU). (18k) |
|
|
Some different parameters lead to more prominent mountain tops and some artefacts in the valleys. (20k) |
|
|
If the function is applied more intensive, we get some terracing effect. (23k) |
|
|
It also works vice versa, leading to round upper parts flatted on the tops and incised valleys. (20k) |
|
The following 3 pictures show a combination of both, the first one is the original heightfield, the second one after 22 steps, the third after 44 steps.
I also made an animation of this one: erode01.avi (AVI-file 512x384, 45 frames, 729k)
One more example with steeper hillsides in the original.










