Search Unity

Indirect lighting not reflected in light probes

Discussion in 'Global Illumination' started by AndersMalmgren, May 4, 2019.

  1. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    I have a prefab. its were the player start when he enters a new game or respawns after death. This prefab has a light probe group. In a empty scene it looks like this

    upload_2019-5-4_0-58-23.png

    Indirect light from the spotlight to the lower right contributes to the light probes. Here is an actual scene. Also works,

    upload_2019-5-4_0-59-41.png

    Here is a third actual scene, were it does not work. Indirect light does not contribute to the probes
    upload_2019-5-4_1-1-38.png
     
  2. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    Light setting

    upload_2019-5-4_1-2-57.png
     
  3. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    If I disable everything in the broken scene but the prefab it works

    upload_2019-5-4_11-44-44.png

    Need advice, thanks
     
  4. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    I do get these errors but realtime indirect is disabled as yuo can see above

    upload_2019-5-4_11-54-27.png

    I guess what it complains about is the light occluding meshes I have. They are set to lightmap scale 0
    upload_2019-5-4_11-56-18.png

    Anyway, above workign bake is with those occluders only and the prefab and that works.
     
  5. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    I changed to Very high setting for the light parameters parameters, and I though it first solved it

    upload_2019-5-4_19-11-44.png

    But the problem have now moved to a new mixed mode light instead.
    Untitled.jpg

    There is no overlapping mixed mode lights in the scene and we only have 3 mixed mode lights in this scene including directional light
     
  6. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    I reported bug
     
  7. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    It seems like you have no baked indirect coming from the environment. In one of your shots, I can see that you are using a very dark gradient. Could you please try increasing its brightness, or switching to a skybox?
     
  8. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    No there is indirect, it's just not contributing to the probes. I can fix a screenshot when I come back to the office with and without indirect to show you the difference. But I have a dark gradiant, so were indirect does not hit it will be very dark.

    I'm baking a clone of the scene as we speak with medium paramters. Will compare high and medium wen I get back to the office.

    edit: Btw, to get fair compares look at the first screen first post, it got no skybox controbuting to ambient. And the last screenshot in same post it also has no skybox contrubuting to ambient. These two should look the same.
     
  9. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    Allright so here is Indirect on
    upload_2019-5-6_16-37-54.png

    And here with it off. As you can see it affects both geo and probes

    upload_2019-5-6_16-38-45.png

    While in above screenshot from orignal post it does contribute to geo but not to probes (Paste it below)


    Here is the prefab in an empty scene (Medium)
    upload_2019-5-6_16-44-33.png
    And here in the actual scene (Medium)
    upload_2019-5-6_16-45-25.png

    So pretty close to each other

    Here at High setting, empty scene
    upload_2019-5-6_16-48-36.png
     
  10. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    Actual scene at high settings
    upload_2019-5-6_16-51-38.png
    Also very similar results

    edit: Interesting that at Medium the light data takes 0,83 gigs and 0,79 at high
     
  11. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Yes, I've just noticed that. Please paste the bug ID here, so we could take a look at it quicker.
     
  12. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    Sure no problem, here goes, Case 1151719
     
    BigRookGames likes this.
  13. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    I have been able to reproduce the problem. Its related to Very low lighting parameters.

    upload_2019-5-7_17-29-23.png

    Though banking in an empty scene at very low is not a problem. Which indicates there is a bug somewhere
    upload_2019-5-7_17-31-33.png
     
  14. BigRookGames

    BigRookGames

    Joined:
    Nov 24, 2014
    Posts:
    330
    I am unable to find the issue in issue tracker, was there ever an update on this?
     
  15. rasmusn

    rasmusn

    Unity Technologies

    Joined:
    Nov 23, 2017
    Posts:
    103
    Hi Edboon, the bug is still on our radar. The reason we have not looked at it yet is that other issues with higher priority (more people affected) have taken precedence. Of course, we aim to find time to look into this issue as well.

    You can find it on the issue tracker here:
    https://issuetracker.unity3d.com/is...t-probes-when-lighting-is-baked-in-mixed-mode
     
    BigRookGames likes this.
  16. BigRookGames

    BigRookGames

    Joined:
    Nov 24, 2014
    Posts:
    330
    Thanks for the update, and link.

    Would it have the same effect as having 2 lights, one realtime and one baked of the same type and intensity,etc?
     
  17. rasmusn

    rasmusn

    Unity Technologies

    Joined:
    Nov 23, 2017
    Posts:
    103
    @EdBoon Sorry, but I don't follow. What does "it" refer to in your sentence? Please give more context :)