Search Unity

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

Lightmapping artifacts

Discussion in 'Global Illumination' started by CasperK, Jun 22, 2015.

  1. CasperK

    CasperK

    Joined:
    Mar 10, 2015
    Posts:
    10
    The lightmapping in Unity is still a real nightmare,
    I have been baking overnight for 2 weeks now and have yet to get a result without any artifacts at all.
    Each time there's an object with artifacts and I'll change the settings and scale of that object, check if its not overlapping and leave it overnight to bake, just to find another error. Or a whole bunch that messed up that where alright previously without any reason.
    (these are all seperate builds).







    This has basically turned into a sadistic easter egg hunt with my hopes being dashed each time.

    And a new one I haven't seen before, my whole terrain decided to turn red. Oh the joy.


    Has anyone found a way to get reliable results from Enlighten/Unity?
     
    Last edited: Jun 22, 2015
  2. ninjanosui

    ninjanosui

    Joined:
    Jul 12, 2013
    Posts:
    54
    Hoi Casper,

    No reliable results. Turning on ambient occlusion sometimes removes the artifacts for me.
    Indirect light seems to cause a lot of artifacts.
    As soon is I turn it on my scenes are filled with black spots and overlapping uv's.
     
  3. jimmikaelkael

    jimmikaelkael

    Joined:
    Apr 27, 2015
    Posts:
    789
    You could try to bake raising baked resolution. It solved artifacts problem for me on small sample scenes (my artifacts were looking like the black dots you're getting, they disappeared with a baked resolution at 60).

    However for me this was not really a solution since my large scene fails to bake with "out of memory" crash report when using such resolution...
     
  4. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,948
    Im getting this too, im shocked theres not been an official response from the Unity team! (That I can find anyway)
     
    Last edited: Aug 12, 2015
  5. SpiriTx

    SpiriTx

    Graphics QA

    Joined:
    Apr 12, 2012
    Posts:
    252
    Hi,

    Do you import lightmapping UVs and normals or do you let Unity generate them?
    Also what version are you using?
     
  6. Teo

    Teo

    Joined:
    Oct 31, 2009
    Posts:
    564
    I am 100% sure UV2 dont exist or is overlapped, better let Unity generate the ligmap UV's.