Skip to content

A minimal Rust port of weigert's SimpleHydrology program.

License

Notifications You must be signed in to change notification settings

skalimoi/SimpleHydrologyRust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleHydrologyRust

A minimal Rust port of weigert's SimpleHydrology program.

Differences with the original

This is not an identical port. Most of the rendering stuff has been stripped out so that this program just fetches a premade heightmap and erodes it, giving three files as output: an eroded heightmap, a discharge map, and a momentum map. It accepts any resolution, the only thing that will change is the rendering time. I have tried it with 4096x4096 heightmaps and runs just fine.

Usage

First, install Rust.

Be sure to place your heightmap in the root folder (where the cargo.toml is located) and change the constant FILE_NAME on main.rs to the name and extension of your heightmap.

Do cargo run --release. The release tag is important as this ensures maximum performance.

Default is 100 erosion cycles - to change it, edit the CYCLES constant on main.rs.

About

A minimal Rust port of weigert's SimpleHydrology program.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages