- Home /
create hole in terrain -- pass through terrain/transparent terrain
I'm trying to figure out how to create a 'hole' in unity terrain, with the end result being a cave entrance.
The cave itself will be a mesh creation, but i want to be able to create a hole in the terrain to let the player pass to the mesh which would be positioned under the terrain, and also see through the terrain into the cave mesh beneath.
I'm not sure if this is possible at all... But i figure i'll ask
anything is possible. I'm not sure if unitys built in terrain system does this but you don't have to use unitys terrain system. you could always just make your terrain in your modelling program ins$$anonymous$$d
Answer by Ivoryjw · Mar 20, 2019 at 04:05 AM
Heres a script to how to make the player pass through the terrain: https://gist.github.com/slipster216/f5caba13260b26f49242192b29983d86 However, the transparent part of the terrain is probably going to require another shader. May I recommend the free Microsplat: https://assetstore.unity.com/packages/tools/terrain/microsplat-96478
And it's terrain hole plugin: https://assetstore.unity.com/packages/tools/terrain/microsplat-terrain-holes-97495
Wow... i had no idea microsplat could do that :D Im going to play around with that soon!
Your answer
Follow this Question
Related Questions
How to restrict building on uneven surfaces? 2 Answers
Object2Terrain Creates a Invalid Collider. Help please. 1 Answer
need trigger + collide 2 Answers
Physics Materials on SpeedTree? 0 Answers