Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Problems with GI

Discussion in 'Global Illumination' started by Balta66, Aug 5, 2015.

  1. Balta66


    Jun 22, 2014

    So I have 2 problems :

    1 - I have a 2 rooms in my scene one is completely closed and the oher next to it has no roof.
    In the closed room I have a spotlight pointing to the other room and this is what I get

    Light is going through the wall. Like you can see on the right I'm using only RealTime Global Illumination.

    2 - If I deactivate it and use Baked GI only a really strange problem appears it Bakes lighting for my spotlight if it set to Baked but also when it is set to realtime.

    And If I active Realtime GI and Baked GI at the same time the first problem appears

    So here are my questions :

    Is there a way to solve the problem of the light passing trough the wall ?

    Has someone an explanation to the second problem ?

    EDIT : All the walls and floor are set to static and can cast and receive shadows, also the spotlight is set to cast soft shadows

    Attached Files:

    Last edited: Aug 5, 2015
  2. TechCor


    Apr 3, 2015
    You didn't mention it, so did you:
    1. Make sure the light is set to hard or soft shadows
    2. Make sure the geometry is set to cast and receive shadows
    3. If baking, make sure all the geometry has "lightmap" checked under the static menu.
    4. Make sure that your quality settings support shadows. The currently selected one is what the editor is set to.
  3. Balta66


    Jun 22, 2014
    Actually I just found this in a tutorial on the unity website :

    And the same thing is said for spotlights, actually it only works for directional light. So that answers the first problem