Noise-generation for use in hexagram30 projects
Based on the noise-rs project. Implements two custom noise
modifiers used for cave generation: threshold
and invert
.
Currently supports cave-like noise generation via the CLI cave
subcommand,
with six different cave types to choose from.
To see the (small) examples, run make examples
. Images will be generated in
the ./example_images
directory.
Run make
.
After building, run the following for detailed option and flag info:
./bin/hxgm30-noise help
./bin/hxgm30-noise -h
./bin/hxgm30-noise cave -h
The following will generate a test.png
image in the ./example_images
directory:
./bin/hxgm30-noise -s 2 -r 800,800 -t -0.2 -o test.png cave complex
Here's a thumnail of six different cave systems generated with this tool (click to see large image):
Here's one of them generated with the ASCII output option:
And here's another one colored for land and sea:
Here's one generated with more than two levels (and colors), useful for things like land cover:
Copyright 2020-2022, Hexagram30 [email protected]
Apache License, Version 2.0