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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Black zones in baked lightmaps

Discussion in 'Global Illumination' started by bakanekofr, Mar 20, 2015.

  1. bakanekofr

    bakanekofr

    Joined:
    Feb 28, 2014
    Posts:
    118
    Hello,

    I'm trying to bake the AO in the lightmaps, and have many bugs, in the form of full black zones in some places.

    My objects have the "generate lightmap UVs" box checked in the import setting. Using Unity5 patch1, deferred path, standard shader, PC, DX9, gamma colorspace.

    Here's a shot with the bug visible (the crate in the bottom left part), my lighting settings in the right part, plus a second shot with the baked view.

    Is there a way to fix this? Thanks!

    lightmap_1.png

    lightmap_2.png
     
  2. bakanekofr

    bakanekofr

    Joined:
    Feb 28, 2014
    Posts:
    118
    Update: I've checked the lightmaps in Photoshop, and can see some random dots, like a noise pattern. I'm pretty sure this is the problem. Is there a way to fix this?

    lightmap_3.png
     
  3. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    similar issue here, just not with faces but with whole objects. Filed a bug report a while ago and seems to be in the progress of being fixed. Hope for a fix soon.
     
  4. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
  5. essimoon2

    essimoon2

    Joined:
    Nov 13, 2013
    Posts:
    195
    it was 672989.
     
  6. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    @bakanekofr please file a bug report on the random dots issue. It looks unrelated to the case 672989 that @essimoon2 reported.
    Both of your issues with black spots might be related to lightmap UV generation, but the random dots looks like a different case.
     
  7. bakanekofr

    bakanekofr

    Joined:
    Feb 28, 2014
    Posts:
    118
    Thanks, but actually I don't have that issue anymore. Cleared the cache, and played a bit with the parameters, no more problems so far.
     
  8. Vibs_appit

    Vibs_appit

    Joined:
    Feb 16, 2014
    Posts:
    53
    @bakanekofr: Can you share what parameters you are using for baking? I am also getting those random dots and I can't seem to find a way to fix this. Any help would be appreciated.
     

    Attached Files:

  9. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    10,811
    Please file a bug report.