https://github.com/integratedquantum/voronoibiomeart
A failed biome generator that ended up producing art.
https://github.com/integratedquantum/voronoibiomeart
Last synced: 26 days ago
JSON representation
A failed biome generator that ended up producing art.
- Host: GitHub
- URL: https://github.com/integratedquantum/voronoibiomeart
- Owner: IntegratedQuantum
- License: mit
- Created: 2023-05-19T12:13:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-19T13:00:38.000Z (about 3 years ago)
- Last Synced: 2025-01-26T19:34:28.835Z (over 1 year ago)
- Language: Zig
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
I tried to make a biome map.
This algorithm works by choosing biomes at random and then using a simulation to make sure they are placed realistically(hot biomes are far from cold biomes, ocean/land biomes are clustered together).
This turned out to not work that well, but it makes some interesting images and the simulation process looks almost organic:
https://github.com/IntegratedQuantum/VoronoiBiomeArt/assets/43880493/40b0f828-403c-4044-88bb-0e3e90fb6140
# How to run
1. [Install zig](https://ziglang.org/download/) and hope for the best. I have tested this with zig version `0.11.0-dev.3132+465272921` You may need to some changes when using a newer/older version of zig.
2. Run it in release for your own sanity
```
zig build run -Doptimize=ReleaseFast
```
3. Watch how the folder gets flooded with images. This is only for making the video and in itself is pretty slow. You can disable this behavior [here](https://github.com/IntegratedQuantum/VoronoiBiomeArt/blob/9a656172945eb0776c254671e01e72cfe7f9f701/src/RecursiveAttempt.zig#L386 ).
4. You can now turn the images into a video using ffmpeg:
```
ffmpeg -framerate 30 -i 'testBefore%d.png' -c:v libx264 -pix_fmt yuv420p out.mp4
```