- Home /
Terrain Occlusion Culling
Hi,
I'd like to know if Unity3D supports terrain occlusion culling, this means if objects behind hills are actually culled...if so I'd like to know if I have to do something manually to enable it.
Answer by GameVortex · Nov 14, 2013 at 05:41 PM
Yes, but it will only work with static objects. You will have to set your terrain and Objects to be Occlusion Static in the top right corner of the inspector and then Bake Occlusion for the level in Window/Occlusion Culling.
For dynamic objects, they will only be culled like normal when out of view of the camera.
it's really a shame that the dynamic objects are not culled
I believe they can be culled too with unity pro( which you are using anyway if you are using occlusion culling) This tech demo video shows it around 2:30 http://www.youtube.com/watch?v=S5l3unhW4e0
all right, I use unity PRO...how can we be sure about it?
In the scene view you can visualize the occlusion culling, by enabling it trough the occlusion culling window.
Answer by Ericool · Jan 09, 2015 at 11:56 AM
For dynamic occlusion look for occlusion area tutorials
Answer by hangarter · Feb 22, 2021 at 05:11 PM
I know it's an oldie but today I was stuck on this!
Here we go: there's a "Dynamic Occlusion" checkbox on any Rendering component (enabled by default). So all you have to do is select all Static objects you want Unity to consider as Occluders (the ones blocking) and do a Bake on Window/Occusion Culling. Once you do that, any Occludee (Game Object that's not static) that has the checkbox "Dynamic Occlusion" checked on their Renderer component will be hidden accordingly during runtime.
Reference: https://docs.unity3d.com/Manual/occlusion-culling-dynamic-gameobjects.html
Your answer
Follow this Question
Related Questions
Detecting if object is Umbra culled 1 Answer
Make a simple tree 1 Answer
Freeze on destructible terrain. 0 Answers
Wind Zone Best Practices: Less is more? 0 Answers