How to make 3d perlin noise caves in this proyect?:

My proyect is this:
index.html (17.0 KB)
It consist on a forest without caves. My cuestion is: With 3d perlin noise… ¿Can I make 3d perlin noise caves? Sorry my ignorance and thanks anyway.

The entire zip is this: (492.4 KB)

And the image is this:

You could use marching cubes for that - you march though a volume filled with 3D perlin noise and generate a mesh from it (code in the bottom right corner of the example page, just keep in mind you won’t need anything besides the marching cubes algorithm - the meta spheres and realtime components don’t make much sense for caves.)

1 Like