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. Dismiss Notice

Error when occlusion baking

Discussion in 'Editor & General Support' started by the_mr_matt, Nov 15, 2020.

  1. the_mr_matt

    the_mr_matt

    Joined:
    Jul 21, 2015
    Posts:
    124
    I'm trying to do some occlusion baking in my scenes. I have a number of trees, cliffs, and buildings marked as static, but upon building I'm presented with these errors:

    Error occurred in occluder data computation
    Failure in split phase
    That's all the details it provides, nothing else.

    I'm using Unity 2020.1.13f1, and the latest HDRP.
     
    Last edited: Nov 15, 2020
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    Definitely google this error, you're never the first guy.
     
  3. the_mr_matt

    the_mr_matt

    Joined:
    Jul 21, 2015
    Posts:
    124
    I'm afraid I think I am this time. The only relevant post is from Unity 4.5 and has been fixed, however clearly it was not.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    Sounds like it is time for the bisection approach.

    Make a trivial scene with one small occluder.. build it. Good? Continue!

    If not then we have a bug. File a bug with Unity.

    If a trivial scene works, take your existing scene, remove HALF the occluders. Build it.

    Lather rinse repeat until you delete the offending occluder.

    With that information you may be able to reason about what is happening.
     
  5. the_mr_matt

    the_mr_matt

    Joined:
    Jul 21, 2015
    Posts:
    124
    Found the issue, I had a very large ground plane. Disabling occlusion in the static settings fixed it.
     
  6. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
    Exactly... as suggested in the Unity 4.3 comment from circa January 2014:

    " Increasing the value of smallest occluder and/or splitting up the scene into smaller chunks will get rid of this error."

    I'm tellin' ya, yer NEVER the first guy to have an issue. :)
     
    the_mr_matt likes this.