erosiv / soillib Goto Github PK
View Code? Open in Web Editor NEWPython3 / C++23 Geomorphology Simulation Library and Toolbox
License: GNU Lesser General Public License v3.0
Python3 / C++23 Geomorphology Simulation Library and Toolbox
License: GNU Lesser General Public License v3.0
In tools/basic_hydrology/config.yaml, What are the meanings of those parameters and how do they affect the geomorphology? For example, if I don't want to create any lake or pool, how should I adjust these parameters?
lrate: 0.1
scale: 80
max-cycles: 8192
min-basin: 0.05
map:
dimension:
- 960
- 960
water:
max-age: 1024
evap-rate: 0.001
deposition-rate: 0.05
min-vol: 0.001
entrainment: 10.0
gravity: 2.0
momentum-transfer: 1.0
Hey Nick, thanks for your blog posts and code. Been learning a lot!
I haven't managed to get any of your code running on my macOS (some issues with g++-13
when trying to run make) but have had some success in porting the code to JavaScript which I'm more familiar with. It runs very slowly in JS; so I might try AssemblyScript/WASM to speed things up, or see if I can do it GPU side with WebGPU/WebGL.
I'm a bit stuck on normal map calculation at the moment, it appears they have a dramatic effect on visuals and performance. I also see you've gone through a variety of them, is there one that is better suited? I also don't fully understand what number to choose for "scale" as it seems pretty arbitrary—is there anything that could be relative to the physical size of my map, or how the camera is viewing it? Is there a reason #3 appears to result in the smoothest normals and mountain peaks, but you've moved away from that in more recent projects?
SimpleErosion - world (I find this to be the "smoothest" so far)
Here's some differences just when I change the normal function from one to another:
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.