Search Unity

Blotchy Baked Lightmap

Discussion in 'Global Illumination' started by 64slices, Apr 10, 2015.

  1. 64slices

    64slices

    Joined:
    Apr 8, 2015
    Posts:
    7
    Hey Folks,

    I've been bashing my head against this one for a little while now - I have a scene which incorporates 2 directional lights, 2 point lights and 2 spotlights. All lights are set to "Baked", lightmap settings as per below. I'm also using the forward rendering pipeline, and have looked at the result on a variety of quality settings.
    Untitled2.png

    I've tried turning on or off realtime GI, and tweaking the resolution of the baked GI, and messing with the realtime resolution / indirect resolution will change the size of the blotches or spots visible in the screenshot below, with nothing actually casting a shadow on the objects in the scene, and with no difference between the object with / without the blotches, I'm left particularly confused as to what is going on. Any thoughts?
    Untitled.png
     
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    Try setting the light to Hard Shadows instead of Soft and see what happens.
     
  3. 64slices

    64slices

    Joined:
    Apr 8, 2015
    Posts:
    7
    gave that a shot, no difference unfortunately - thanks for the suggestion though!
     
  4. topofsteel

    topofsteel

    Joined:
    Dec 2, 2011
    Posts:
    999
    I'm curious, are you using substances? I've seen other posts about this, but hadn't experienced it myself until now. I have one mesh with some metal materials. I noticed this particular substance I was using would produce this strange pixelated pattern in the normal channel, very similar to the pattern spread across my mesh. And it's only on that one mesh. I've replaced the material, but haven't re-built my lightmaps yet (it's a lengthy process). I'm interested to see if that fixes it.

    sploch_00.png
     
  5. 64slices

    64slices

    Joined:
    Apr 8, 2015
    Posts:
    7
    Nope. No substances being used here, that pixel pattern does look very similar though.
     
  6. 64slices

    64slices

    Joined:
    Apr 8, 2015
    Posts:
    7
    Case 688709
     
  7. 64slices

    64slices

    Joined:
    Apr 8, 2015
    Posts:
    7
    Bump, any ideas here? Or any idea how long feedback on a pro version bug normally takes?
     
  8. topofsteel

    topofsteel

    Joined:
    Dec 2, 2011
    Posts:
    999
    I'm a pro user and submitted a but a month ago. I never heard a thing after the initial confirmation email. Case number isn't in the system either. They are probably getting thousands of bug reports.

    In my case, I was using reflection probes and that particular mesh wasn't reflection probe static. Verifying all meshes were eliminated the problem for me.
     
  9. Nullzero

    Nullzero

    Joined:
    Apr 24, 2013
    Posts:
    12
  10. gekidoslair

    gekidoslair

    Joined:
    Sep 7, 2012
    Posts:
    128
    definitely a point light problem. removing the point lights from the scene fixes the issue. trying a few things that @Nullzero suggested, will see how it goes.
     
  11. Laurens-Paladin-Studios

    Laurens-Paladin-Studios

    Joined:
    Apr 25, 2015
    Posts:
    54
    I had the same issue,

    But after I had "generated Lightmap Uvs" at the mesh import settings for the specific meshes and made sure that my shader does not make use of the lightmap uv channel it fixed the pixelated dark sports.
     
  12. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Hi, it looks like your UVs are overlapping in lightmap space. The noisy pattern is the result of lighting from several triangles that get written into the same texels. Verify that you have good lightmap UVs.
     
  13. gekidoslair

    gekidoslair

    Joined:
    Sep 7, 2012
    Posts:
    128
    I'd get Unity to generate new Lightmap UV's, but that's another bug that completely breaks the import process for assets, so I have it disabled on everything. Gotta love Unity 5 ;}
     
  14. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    Did you file a bug report on the import process breakage?