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

Question White lines and dots flickering on after lightmaps bake, depend camera orientation

Discussion in 'Global Illumination' started by PF-Sebastien, Sep 29, 2023.

  1. PF-Sebastien

    PF-Sebastien

    Joined:
    Jun 13, 2019
    Posts:
    12
    URP 14.0.8
    Unity 2022.3.10f1
    Project build for Oculus Quest 2

    Hi everyone, for several weeks now I've been having a problem with white pixels or white lines appearing after bake lightsmaps.
    This doesn't seem to be due to light leaks because these bugs only appear when the camera is aligned on a surface and when I move the camera these bugs flash.

    Here are a few examples of my problem:




    And the same view with correct exposure


    I've tried a lot of things and can't seem to find a solution :(
    My whole scene is static, Rendering path is deffered
    all my lighting are in baked mode

    I have a bright exterior lighing and a dark interior scene (and i need to conserve this configuration)

    i have only 2 lights in my scene
    1 directional as sun in baked mode (intensity=1 ; indirect = 1;
    1 point light also in baked mode

    My environement lighting is a simple Skybox
    Jpeg as cubemap with white color and exposure to 0.5f
    Intensity Multiplier to 1

    all settings are here:


    I've read the following posts and vidéos, but can't solve my problem:
    https://blog.unity.com/engine-platform/5-common-lightmapping-problems-and-tips-to-help-you-fix-them
    https://forum.unity.com/threads/lightmapping-troubleshooting-guide.1340936/
    https://forum.unity.com/threads/fixing-screen-space-directional-shadows-and-anti-aliasing.379902/

    Seems to have the same problem as me:
    https://discussions.unity.com/t/har...ing-white-pixel-artifacts-on-all-meshes/92264
    but set an AA filter seems to make no difference.

    Since I reset my entire project in Unity 2022.3 (instead of Unity 2021 before), Temporal Anti-Aliasing has improved rendering a little, but the problem is still there.

    I've really run out of ideas and don't know what to do other than throw my computer out the window.:D

    Please, I hope one of you can help me. :)
    I wish you a beautiful day
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,001
    Did you try having more padding for the UVs?
     
  3. PF-Sebastien

    PF-Sebastien

    Joined:
    Jun 13, 2019
    Posts:
    12
    Hello AcidArrow!
    First of all, thank you very much for taking the time to read my message, and to help me.

    After a few tests yesterday and this morning it seems that this problem has disappeared!!!
    I'll have to keep checking on my other scenes, but for now it's working.
    Thank you very much.

    However, when I launch the application in the Quest 2, I get lots of white vertical lines (very similar to my initial problem) but these lines follow the Quest's movement, and don't seem to be attached to any particular object...
    I tried to make a screenshot to show them but they don't appear on it. And if I try to make a video recording, the problem disappears completely...
    Any ideas?