Search Unity

Bug Broken Light Probes in Multi Scene setup in Unity 2021.3.12f1

Discussion in 'Global Illumination' started by RogueSun_Thor, Dec 1, 2022.

  1. RogueSun_Thor

    RogueSun_Thor

    Joined:
    Jan 28, 2021
    Posts:
    2
    We are having problems with Light Probes in a multi scene setup, after updating Unity from 2020.3.36f1 to 2021.3.12f1.

    The setup is the same and we are still calling the needsRetetrahedralization function, after all the scenes are loaded.

    Selecting a dynamic object shows the contributions from the light probes are very broken. Very similar to what we were getting before the needsRetetrahedralization function was called in the old Unity.

    Note we are using Bakery to bake the lighting and we have updated to the latest version V1.9.

    Independent scene. Observed light probes are working as expected.


    In multi scene setup, running game. Observed light probes data is broken.


    Selecting the light probe data from the separately loaded scene.


    Other checks:
    • The sphere is dynamic and not static.
    • The lights are set to baked, contain a Bakery Point Light script and are baked.
    • The light probe points are next to each of the coloured lights.
    Any help much appreciated,

    Kind regards,
    Thor
     
  2. Pema-Malling

    Pema-Malling

    Unity Technologies

    Joined:
    Jul 3, 2020
    Posts:
    324
    Hey, if you are able, my best suggestion would would be see if your issue still reproduces on Unity 2022.2. The light probes system was refactored quite heavily in that version, and many issues like the one you are seeing were fixed by this. This change wont' be backported as it is changes behavior too significantly.

    When you say "we are still calling the needsRetetrahedralization function" I assume you mean that you are calling
    LightProbes.Tetrahedralize
    or
    LightProbes.TetrahedralizeAsync
    after loading all the scenes you want to load. Is that correct?

    Also, could you show how the shaded probe cloud looks in the single vs multiscene setup? You can enable visualization of the entire probe cloud in "Windows > Rendering > Lighting > Scene > Workflow Settings > Light Probe Visualization" set to "All Probes With Cells"