Author Topic: Biomes with different terrain  (Read 130 times)

Sh1co

  • Newbie
  • *
  • Posts: 10
    • View Profile
Biomes with different terrain
« on: June 09, 2021, 05:05:13 PM »
I am currently trying to make a world with different biomes where each biome would have different terrain features like hills or nearly flat. But currently, I see that you can only attach 1 terrain generator for each world that builds the same terrain for all biomes. Is there a way to have each biome have different terrain?

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 7262
    • View Profile
Re: Biomes with different terrain
« Reply #1 on: June 09, 2021, 06:47:16 PM »
Hi,

In Voxel Play, biomes are picked from two values: altitude and moisture (also known as humidity). The terrain generator must return these values for any given world position.
This approach is quite well explained here:
https://www.redblobgames.com/maps/terrain-from-noise/

The main problem with using the reverse approach (biomes first, then terrain) is the joints of biomes. You can end with sharp altitude differences across biomes. Of course you could apply some smoothness on the edges of each biome so they connect but this solution is not included in Voxel Play by default (but the engine allows you to code that). Please check this page for details about how to code a custom terrain generator:
https://kronnect.freshdesk.com/support/solutions/articles/42000001950-coding-your-own-terrain-generator

Regards

Sh1co

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Biomes with different terrain
« Reply #2 on: June 10, 2021, 04:56:31 PM »
Thanks for the reply  ;D