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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity 5 GI: More anisotropy than in Unity 4?

Discussion in 'Global Illumination' started by essimoon2, Mar 23, 2015.

  1. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    Another lightmapping issue I noticed with the new Unity 5:

    After baking a small scene with lots of surfaces being pretty perpendicular to the camera there seem to be some major anisotropy issues I didn't have with Unity 4. Those black shadows only appear when viewed from a very sharp angle.
    Maybe it has something to do with the issue that lightmaps are currently not dilated, but I'd love to get some feedback or information on how to solve this or if it will be improved (without setting aniso level on max :D)

    black shadows comp.png
     
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    What is you baked padding set to?
     
  3. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    it's set to 8 texels.
     
  4. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    I suspect this bleeding is coming from within the atlas and not from the borders which has a nice 8 pixel padding. Can you please select the object and take a screenshot of the Lighting -> Object -> Baked Intensity view?
     
  5. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    I'm not sure if this is what you need but I took a screenshot of the lighting -> object tab with the mesh selected.
    lighting object.PNG

    I'm still pretty sure it's related to anisotropy though. Here's a screenshot of the same scene, once with lightmap aniso set to 3, and below aniso level of 10.

    aniso issue.png

    The black lines disappear completely but I don't think that's really a practical solution. Aniso of 10 is pretty high and I never needed to adjust it in Unity 4. So if I'm gonna set aniso to 10 for each lightmap that'll probably have some impact oin the performance.
     
  6. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    It is indeed the Object window I had in mind for the screenshot, but please drag the Preview in the lowest section of the window up, so the texture with the mesh UVs shown on top of it is visible.
     
  7. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    Oh I see now, sry seems I didn't get it :D
    Here it is, same object with baked intensity exposed.
    baked intensity.PNG
     
  8. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    It appears that the dilation isn't working properly here... @Kuba do you agree?
     
  9. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    Sry to get to this so late, was busy with a lot
    According to Kuba's reply in this topic
    http://forum.unity3d.com/threads/unity-5-light-leaks-at-uv-seams.312140/#post-2028074
    Unity 5 doesn't dilate lightmaps currently. I guess you're right, it might be the reason why this effect occurs.
    Gonna check on it again when there is a working dilation.
    Thanks for looking into the issue :)