Search Unity

Algorithms/Techniques for procedural map generation (with caves) and deformation

Discussion in 'World Building' started by davidmanassa1, Apr 12, 2021.

  1. davidmanassa1

    davidmanassa1

    Joined:
    Apr 12, 2021
    Posts:
    1
    Hello,

    I'm building a procedural world generator. By now I already generate the mesh and have a random generated world using Perlin Noise.

    I want to the player be able to deform the world in the game, not only by height, but creating caves for example. I am wondering how can I do that?
    With the 2D height map (a matrix, which is what I have) I can't have a cave for example. How can I add caves?
    Which algorithms/technics exists for that?

    Thanks and Best rewards,
    David
     
  2. jbaumer6

    jbaumer6

    Joined:
    Mar 12, 2018
    Posts:
    15

    I would look into 3D perlin / simplex noise, and the Marching Cubes algorithm.