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

Realtime GI Light Occlusion Issue

Discussion in 'Global Illumination' started by EvDave, Oct 30, 2016.

  1. EvDave

    EvDave

    Joined:
    Sep 5, 2015
    Posts:
    6
    Hi,

    I have a simple scene in which the shadow from a large cube completely covers a smaller cube with it's shadow. However, the smaller cube is emitting indirect light as if it weren't in shadow. It's a puzzling issue, and I wanted to get your opinion in case I'm missing something obvious.

    I've attached a screenshot of the issue and a minimal test scene to reproduce it.

    I'm using the latest Unity version 5.4.1f1, running on Windows 10 64-bit.

    Thank you.
     

    Attached Files:

  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,936
    I can confirm. I downloaded the project and I can't find anything wrong with the set up. Indirect shadowing with Directional Lights should work properly, maybe it's a recent regression?

    I suggest doing a bug report, also send them the project you attached here. (and once you get a case number, post it here as well)
     
  3. EvDave

    EvDave

    Joined:
    Sep 5, 2015
    Posts:
    6
    Thanks AcidArrow. I submitted a bug report, case ticket 846861_kspkkof31m808avm.
     
  4. EvDave

    EvDave

    Joined:
    Sep 5, 2015
    Posts:
    6
    Unity QA suggested setting the directional light baking mode to Mixed. This fixes the issue, but the lighting can no longer be adjusted in realtime, which is not appropriate for me as my project uses time-of-day. The other suggestion they had was to turn down Indirect Lighting and compensate for the lack of it with ambient lighting. Losing GI is not a good solution to the problem however. I've replied to them asking to revise the issue. Enlighten should be able to support correct real-time indirect shadowing.

    Additionally, another user is possibly experiencing this issue as well https://forum.unity3d.com/threads/indirect-light-leaking-through-walls.439169/.
     
  5. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,936
    Indirect light shadowing only works properly for Directional Lights. It doesn't work for anything else (which means, what you're seeing would be normal for spots and points).

    But you are using a directional light, which makes me think this is a bug.

    Does QA not consider it a bug?
     
  6. kemalakay

    kemalakay

    Unity Technologies

    Joined:
    Jul 12, 2016
    Posts:
    224
    Hi @EvDave,

    After checking your scene, we realized that the boxes don't read each other in the systems. However, after marking both of your objects as 'Important GI' (you can read the tooltip for details) in Object > Mesh Renderer settings, they are evaluated in the same system and hence, the box does not emit indirect light under the shadow (using Systems GI Visualization mode, you can see how objects are treated). Let us know if this fixes your problem.
     
    Last edited: Nov 7, 2016