Jump to content

Is it possible to make caves when making new planets?


Recommended Posts

I believe it is possible, but only by adding them as 'surface features' and not part of the structural model of the planet itself. The planet's collision model can't be 'inverted' to create overhangs, because it only has one surface elevation for each location, whereas an overhang or cave would need 3, one for the cave floor, one for the cave ceiling, and one for the ground above the cave.

Link to comment
Share on other sites

As far as I know, no. Terrain in the game is created from basic heightmaps which, while convenient, makes it impossible to add any kind of overhang without adding some way to represent them on a heightmap. Even if you do find a way to deform the terrain mesh to create them, Unity's terrain systems probably gets some performance enhancements by assuming that there are no overhangs in the terrain. Creating overhangs could cause some interesting bugs.

Link to comment
Share on other sites

Caves cannot be implemented with a single heightmap, but it would be possible to do so by a number of other methods. You could create a canyon and then add a mesh to form the roof, you could create a canyon and use a pair of smaller heightmaps with a transparency layer to form the roof, or if you only want basic overhangs you could use procedural generation to deform the heightmap.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...