Caves, nice transform in/out from cave

Hello guys!

What is the best way to make caves in unity? Like I have an island… and want to make a cave that goes actually underground like a mine… Its not possible to dig down in unity… so I could use another scene that loads when i go in the cave opening… but have anyone done that? So its not so obvious… smooth loading and monsters follow… and so inside can be seen from outside and otherway around… how is this done in unity?

Thansk for answers

You might try one of the portal assets on the store, such as Unity Asset Store - The Best Assets for Game Making which is free. There are some paid ones that also look promising.

I’m currently using a terrain shader with transparency plus a bunch of scripts to enable/disable collisions depending on objects as they transition through holes. It works, though between the fiddliness of the scripts/triggers/hole painting and the more expensive shader that’s required, it’s not ideal on the whole.

My next thought is to convert my terrains to meshes and then cut holes in the geometry.

2 Likes

Thanks for replys! =)

Perhaps you could create a cave within a mountain. This would allow you to stay within the same scene as the rest of your island.

From the top of my head I have a couple of solutions:

Sound good! Is there any more documentation on this?

The documentation is linked. It’s all useful stuff, but none of it is about the part where you need a hole in terrain.

Note that Unity’s terrain tools aren’t the only way to render ground. You can always make meshes of the terrain you want and use those instead. It’s less efficient in some ways, but better in others. For instance, if you need a hole you can just delete some faces.

I know, but maybe faking stuff is a better approach that actually digging a hole on a terrain :wink: