Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

procedural caves from mesh

Discussion in 'Scripting' started by Underbrine, Apr 7, 2021.

  1. Underbrine

    Underbrine

    Joined:
    Apr 6, 2021
    Posts:
    5
    Hello there,

    I'm looking for a way to create caves from a mesh. Let me explain :

    I have a mesh where the height of my vertices are made with a perlin noise algorithm.
    I found that i can create caves using Perlin worms but i don't know any way ton implement this to my script.
    Does anyone know how to implement those or have ressources to help me ?

    Thanks a lot
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,779
    Definitely start from some youtube tutorials. No sense having one of us typing it all again here with extra errors!

    Screen Shot 2021-04-07 at 9.14.39 AM.png

    I've seen more results about marching cubes for cave-digging.

    Screen Shot 2021-04-07 at 9.14.53 AM.png
     
    Underbrine likes this.
  3. Underbrine

    Underbrine

    Joined:
    Apr 6, 2021
    Posts:
    5
    Ok Thanks i didn't knew about marching cubes, thanks a lot !
     
    Kurt-Dekker likes this.