Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Oclusion culling working wrong with shadows from directional light

Discussion in 'General Graphics' started by kubazz, Jun 18, 2015.

  1. kubazz

    kubazz

    Joined:
    Nov 20, 2013
    Posts:
    5
    Hi, I'm Kuba working on www.superhotgame.com. Since we switched to Unity 5 I simply cannot get occlusion culling to work as intended with realtime shadows turned on. Wrongly occuded blocks are marked as both Ocludees and Occluders, just like we had this in Unity 4 where everything have been working and occluded properly. Is it a known issue or should I file a bug report?

    Gif from latest version of engine (5.1.1f1), right edge is the edge of viewport:
     
    Last edited: Jun 18, 2015
  2. MrAsmoday

    MrAsmoday

    Joined:
    Jun 11, 2015
    Posts:
    19
    Yeah I've been having this problem too, would be super happy with a fix as the optimization it brings is massive.
     
  3. minhdaubu2

    minhdaubu2

    Joined:
    Jun 10, 2014
    Posts:
    75
    It's seem to be weird. Waiting UT for the answer.
     
  4. kubazz

    kubazz

    Joined:
    Nov 20, 2013
    Posts:
    5
    I submitted a bug report and it got closed as 'not an bug'.

    I confirm that it fixed our issues on most of the levels, sometimes I have to go with 'Smallest Occluder' value down to 0.5 but it works.
    I find it strange that we didn't have this problem in Unity 4.6 (we were baking occlusion on default settings and it was working just fine), but maybe our level's geometry changed in meantime, I don't really know.
    However tweaking settings fixes everything and it is enough for me.
     
    OskarSwierad likes this.
  5. MrAsmoday

    MrAsmoday

    Joined:
    Jun 11, 2015
    Posts:
    19
    Awesome! this works for me fine. Glad it worked for you too.