Search Unity

Light baking - Errors in UV Charts?

Discussion in 'Global Illumination' started by Kojote, Feb 23, 2021.

  1. Kojote

    Kojote

    Joined:
    May 6, 2017
    Posts:
    200
    Hi!

    I used until last week the Unity version 2018.4.15. Here I had collected a few values to render my 500x500 map. The result looked good, rendering took about 1.5 h. The size of the lightmap data was just under 1GB. I have now switched to the Unity version 2019.4.20 LTS.

    Have now switched from Enlighten to Progressive CPU. Have a scene with a Directional Light, probes and some Baked Light. Here are the values from the Lightning:

    https://www.bilder-upload.eu/bild-a58677-1614061754.jpg.html

    Problem is, in 2018 I had evenly colored UV charts, here the "pattern" is quite wild. This is also how the results look after rendering:

    https://s16.directupload.net/images/210222/rg7p8xqs.jpg

    Problem is: Rendering now takes about 10 hours and the results are very poor:

    https://s16.directupload.net/images/210222/as657vdb.jpg

    I have now played with the values for a long time and noticed a difference to 2018. In 2018 I had evenly colored UV charts, here the "pattern" is quite wild:

    Do you guys have any idea where the error is coming from?

    Thanks a lot!
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Enlighten relies on charts and clusters for GI, thus making this system incompatible with progressive lightmapper workflow. You'd have to either manually generate lightmap UVs yourself, and have Unity do that for you in the Mesh Importer settings.
     
  3. Kojote

    Kojote

    Joined:
    May 6, 2017
    Posts:
    200
    So either do it manually or let Unity do it. I have found in the import settigs to generate the lightmaps for the object. An important point was also Lightmap Resolution, this value I have now set far down, to 5. The calculation now runs much faster, that Ergbnis is still far from being really good. But it is already going in a good direction.

    Lightning:

    https://s12.directupload.net/images/210223/nkgzsymh.jpg

    Import Settings:

    https://s12.directupload.net/images/210223/nzz5bpst.jpg

    The UV charts still don't look good though, I can't get them to a consistent color:

    https://s20.directupload.net/images/210224/rcs5nnqo.jpg
     
  4. Pema-Malling

    Pema-Malling

    Unity Technologies

    Joined:
    Jul 3, 2020
    Posts:
    327
    The image links seem to be inaccessible for me, could you perhaps reupload to something like imgur.com ?
     
  5. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Enlighten is much faster than progressive CPU especially on very low preset (4 minutes in enlighten is 30 minutes in progressive cpu). this is for the first time baking. For the next time you can bake in 30 seconds the same scene in enlighten using GI Cache
    The progressive GPU is much faster than enlighten with better quality if you have a good gpu
    If you want to use progressive lightmapper, only use Progressive GPu.
    If you want to use cpu for baking, use the enlighten