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:
out.mp4
-
Install zig 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. -
Run it in release for your own sanity
zig build run -Doptimize=ReleaseFast
-
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.
-
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