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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Bug Lightmaps & APV: punctual lights GI bug (Incorrect color/temperature)

Discussion in 'Global Illumination' started by PutridEx, Jul 2, 2023.

  1. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,120
    Color information seems to be lost/forced to different color/temperatures.
    Tested with point lights, probably the same with spotlights/area.

    This happens with mixed and fully baked punctual lights but is more noticeable with baked due to increased indirect lighting.

    I originally thought this issue was APV/probe volume only, but after testing it happens with regular lightmap GI as well. Tried higher direct samples as well, same issue.

    video of before and after bake:
     
    Last edited: Jul 2, 2023
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,977
    Is the chandelier light color getting overridden by the purple color of the other light? Is this only on 2023?

    I swear I have stumbled upon this bug many years ago and it was fixed, maybe it was reintroduced... (or maybe the bug I remember was about emissive materials getting their colors mixed up, it's been a while memory is foggy).
     
  3. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,120
    This happens to all punctual lights, not just the purple point light - to make sure when I reported it, I tested baking only one single point light and disabling others, same problem. It probably came back.
     
    AcidArrow likes this.
  4. nightdriveinteractive

    nightdriveinteractive

    Joined:
    Jul 10, 2023
    Posts:
    7
    I'm having the exact same problem. If my baked area lights are rotated down (90,0,0) the color temperature is correct. If they are rotated any other way, I get the warmest color temperature regardless of the temperature settings. Very odd.

    EDIT: Using 2023.1.3. Upgraded from 2022, where it worked correctly.
     
  5. nightdriveinteractive

    nightdriveinteractive

    Joined:
    Jul 10, 2023
    Posts:
    7
    I think I've discovered
    This seems to only happen when "Static Lighting Sky" is set in the Lighting > Environment panel. If that option is set to "None", the lights bake properly. However, now the ambient sky lighting won't be baked if it is an outdoor scene.

    Still happens in 2023.1.5.

    Do you have an Issue ID number for the bug you filed? I'd like to follow its progress.
     
  6. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,120
    I don't think I reported it, my project is far too big, and I didn't have the time to create a new project.
     
    nightdriveinteractive likes this.
  7. nightdriveinteractive

    nightdriveinteractive

    Joined:
    Jul 10, 2023
    Posts:
    7
    I sent a bug report. Seems like when you bake with "Physically Baked Sky" set in the Environment panel this bug will happen. Hopefully, that info will help them find a solution quickly.
     
  8. nightdriveinteractive

    nightdriveinteractive

    Joined:
    Jul 10, 2023
    Posts:
    7