- Home /
Occlusion Culling Help
Hi guys -
I'm adding occlusion culling to my game to enhance performance. It works okay when I don't tag my objects as Occludee and Occluder Static in the Inspector. Do I have to do this? Because when I do, the camera starts seeing through objects and it does not work properly. However, when I do, the game runs much faster. I also did add occlusion area to my scene. Any thoughts on why my camera would be seeing through the walls into other rooms when I add Occludee Static and Occluder Static to my objects/map?
The first picture is how it should look, and the second picture is what happens after I add occlusion culling. The walls and objects are marked as Occluder Static and Occludee Static.
Thanks! Mike
how far is your render distance? $$anonymous$$aybe you should try to increase the far clip plane on your camera.
I have a 1000 clip plane for far. I uploaded a pic of it in the inspector.
I've never actually used occlusion culling but one way that I would try to fix it is by making the camera marked as occluder and everything else as occludee. If the camera is occluder than maybe it's what occludes the occludees or objects. I don't know exactly how to fix it but I would try something like that and maybe you can look at the occlusion culling documentation.