- Home /
Occlusion Culling disables my point lights.
Hi.
I am using Unity Pro. Forward Lighting.
Spot lights work and looks great.
Occlusion Culling works well.
When I have a scene containing a point or spot light, enabling occlusion culling makes the light disappear even if they're in an area being rendered.
Is there a way to make spot lights work with OC, or at the very least exempt from culling?
Thanks.
Answer by numandina · Jun 07, 2015 at 07:53 AM
After toying with it for a few hours Unity crashed and on reboot everything was working fine. Turns out I just had to restart Unity.
Every time you change your map, and if you gonna play, it happens. I think you are forgetting to bake occlusion culling before you play. That happens when you change the map without baking, and play.
That was my case, and well i think it's pretty obvious :b
Answer by vlastikch · Sep 17, 2017 at 03:52 PM
Hi. I dont know how it woks. But when i go to occlusion menu / occlusin areas. And then turned on IS VIEW VOLUME . And bake. Voilaaa it works!
Thanks for posting this, adding an occlusion area to the scene (were none was before) fixed it for me. Seems like the problem may have to do with having only global occlusion. The manual unfortunately still isn't too extensive on this topic even after all these years of people having problems with this (my impression I get from all the posts I've read on this topic).
Answer by pwnageman2 · Jun 04, 2015 at 08:23 AM
It may not be Occlusion Culling. You may have too many lights in forward rendering mode. Go to Edit -> Project Settings -> Quality and make sure that your Pixel Light Count is more than the number of lights in your view at any time. Unity automatically turns off the least bright lights to make sure the Pixel Light Count is never exceeded.
Thanks for the comment but as specified in the question spot lights work fine when occlusion culling is off.
Answer by Recluse · Nov 09, 2015 at 10:52 AM
It is occlusion culling. I have two point lights in my scene, and Pixel Light Count set to 8.
Turn on Occlusion and the lights die, turn off and they come back. In the editor the scene lighting looks fine, but in game view it's not. I think there's a bug with Occlusion and point lights.