https://github.com/osmo-systems/perlin_builder
Generates 2d terrain and heightmap jpeg using Perlin noise. Probably a good place to look in for anyone starting with Nannou.
https://github.com/osmo-systems/perlin_builder
learning-by-doing nannou perlin perlin-terrain procedural-generation rust
Last synced: 2 months ago
JSON representation
Generates 2d terrain and heightmap jpeg using Perlin noise. Probably a good place to look in for anyone starting with Nannou.
- Host: GitHub
- URL: https://github.com/osmo-systems/perlin_builder
- Owner: osmo-systems
- Created: 2023-02-21T19:16:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T22:46:54.000Z (about 2 years ago)
- Last Synced: 2025-03-09T12:30:59.109Z (2 months ago)
- Topics: learning-by-doing, nannou, perlin, perlin-terrain, procedural-generation, rust
- Language: Rust
- Homepage:
- Size: 553 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Perlin Builder
Generates 2d terrain and heightmap jpeg using Perlin noise.
Probably a good place to look in for anyone starting with Nannou.
I wrote this project to learn about Nannou and Rust. Constructive criticism is more than welcome.
## Controls
- 'O' && ( '+' || '-' ) : Adjust the octaves.
- 'Z' && ( '+' || '-' ) : Zoom in and out
- 'W' && ( '+' || '-' ) - 'H' && ( '+' || '-' ) : Adjust the image dimensions.
- 'S' Save the image to the current directory.
- 'R' Get a new random seed.
- 'M' Toggle between the two modes, colored terrain or heightmap.## Some examples
#### A typical view when the program starts:
#### The same view with 4 octaves:
#### And with 1 octave:
#### An heightmap with 12 octaves:
#### Zoomed out:
#### Zoomed out with 1 octave:
