How to generate and seamlessly connect multiple terrains with different biomes in Unity?

Hi everyone,
I am currently facing an issue with my project and hope to find some help here. The goal of my project is to create a randomly generated world with various biomes. This world should be similar to Minecraft in terms of having different biomes, but in my case, the biomes are based on Unity terrains.

I have already successfully generated a single terrain with a random biome (see example)


My next step would be to generate multiple terrains, each receiving a randomly selected biome, and seamlessly connect them into one large, cohesive map. However, unlike Minecraft, this does not need to be an infinite world—just a large, finite map.

Here are the issues I am struggling with:

  1. How can I generate multiple terrains with different biomes and seamlessly connect them to form one large map?
  2. Should I create a new C# script dedicated to generating and connecting the terrains, or should I extend my existing “TerrainGenerator” script, which is currently responsible for generating a single random terrain?

I’ve already tried finding a solution with ChatGPT, but unfortunately, I couldn’t get it to work.

It would be great if someone could explain the best way to approach this or even provide a sample implementation. Thank you in advance!

1 Like

My approach is to define a rule set for each biome (mountainous, meadow, swamp, desert, etc.) and generate each biome separatedly. Each biome is manually placed in the scene by you (by painting or connecting anchor points, your choice) and generate its own “map” (which mean it don’t care about other biomes).
On top of that, there is a manager object which iterate through all of your terrain, extract all the biomes generated maps based on boundaries overlap, blend them together using alpha map, finally populate the blended data to the terrain tile.
This way you have a scene with multiple terrain, multiple biomes, seamless transition.
That’s my implementation in my graph based terrain generator Vista.