[mapgen] custom biome system - generating and implementing a heatmap?
Posted: Sun Aug 02, 2020 01:28
I'm working on a map generator for a game I'm making, and I am using a custom biome system since biomes don't exist in singlenode worlds. Almost everything is working:
- the biomes are registering properly
- the generator is getting node data from the biome
- the terrain is being generated correctly
However, I can't figure out how to implement biome distribution. My current system just uses one hardcoded biome, but I'd like to have biomes distributed based on temperature and moisture, looking something like this:
where the greener areas are wet, the yellow/brown is dry, and the white is cold.
Does anyone know how I could achieve this in minetest?
(temperature and moisture should both be from 0-100)
- the biomes are registering properly
- the generator is getting node data from the biome
- the terrain is being generated correctly
However, I can't figure out how to implement biome distribution. My current system just uses one hardcoded biome, but I'd like to have biomes distributed based on temperature and moisture, looking something like this:
where the greener areas are wet, the yellow/brown is dry, and the white is cold.
Does anyone know how I could achieve this in minetest?
(temperature and moisture should both be from 0-100)