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

Ambient Intensity: Static vs. Dynamic Objects

Discussion in 'Global Illumination' started by plmx, Aug 17, 2016.

  1. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    Hi,

    I have a question on ambient intensity. From the docs, it seems that it should affect all objects in the same way. However, objects which are blocked (inside a room) seem to react differently to ambient intensity depending on whether they are marked static or not.

    ambient intensity.jpg

    In the picture, you can see four cubes. The left is marked static, the right is not. In an open scene (top), both are affected the same by ambient intensity. In an indoor scene (bottom), the static cube doesn't react to ambient intensity at all, while the dynamic one does.

    My question is: Why are the two cubes affected differently? Is there any way to change this behavior to be consistent (in particular, I would like the static cube to be affected by ambient intensity) without disabling Precomputed Realtime GI or Baked GI?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,936
    Add light probes inside the room.
     
    plmx likes this.
  3. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    Thanks, that changes the behavior of the dynamic cube to that of the static one. Is there any way to do it the other way around, i.e. have indoor objects be affected by ambient intensity?
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,936
    Do not mark them as lightmap static.
     
  5. plmx

    plmx

    Joined:
    Sep 10, 2015
    Posts:
    308
    Thanks - this removes the object from Precomputed Realtime GI entirely, right? I was hoping to avoid that, as I have other lights as well. Ah, well.