#procedural-generation #terrain-generation #bevy #terrain #generation #procedural

island_map_generator_algo

Generation crate for an island map editor using procedural generation, Rust and Bevy engine

1 unstable release

0.1.0 Nov 18, 2023

#1738 in Game dev


Used in island_map_generator_bevy

GPL-3.0-or-later

5KB
106 lines

https://github.com/danieldidiobalsamo/island_map_generator/assets/79797812/2b459ab1-3ea4-48ea-82f8-2b841ceacc25

About

Island map procedural generation using Rust and Bevy engine. The generator is based on Fractal Brownian motion.

The following parameters can be updated while the simulation is running:

  • texture resolution.
  • octaves: islands amount of details.
  • frequency: higher values create more islands.
  • lacunarity: how many details remains for each octave.
  • persistence: octaves contribution in the general result. Higher values produce "rough" islands.
  • scale: multiplier to amplify the result.
  • bias: allows to shift the result.
  • map seed.

Press 'Q' to leave.

How to launch

Install bevy dependencies and then just launch:

cargo install island_map_generator_bevy
island_map_generator_bevy

Build manually

Install bevy dependencies

Then clone this repository and launch :

cargo run --release

Note: if you want to launch as dev, make sure to add the following feature to decrease compilation time :

cargo run --features bevy/dynamic_linking 

Dependencies

~1.8–2.5MB
~46K SLoC