Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Strange lines after baking light in URP

Discussion in 'Global Illumination' started by mcknll16, Feb 5, 2021.

  1. mcknll16

    mcknll16

    Joined:
    Oct 12, 2020
    Posts:
    2
    apologies if this might be the wrong section but I believe it has something to do with light baking as it only occurs after it but my problem is I get these weird dark edges after baking lights and it appears to only happen about every 3 edges on my mesh. I have tried everything I could think of to get rid of it and have asked on other previous platforms with no luck so maybe someone could help me figure it out?

    - USING URP UNITY VERSION 2020.2.2f1 -

    Light Settings in unity - https://i.imgur.com/seiixsv.png

    Dark lines on my mesh - https://i.imgur.com/jywJm5e.png

    Dark lines still appear on mesh even in different lighting / area in scene - https://i.imgur.com/9Ht415E.png

    Mesh before baking lighting - https://i.imgur.com/EPOn2G8.png

    Uv overlapping shader view to show no overlapping - https://i.imgur.com/RS4JvXy.png

    UV maps from blender - https://i.imgur.com/bJq3m9A.png

    Mesh prop in blender with seams - https://i.imgur.com/3YDvFwX.png


    if it also helps I have auto generated uv's on from unity so I have not made any light uv's for the mesh but this mesh is not complicated at all and it was just meant as a filler for my shelf but im becoming concerned that I am doing something wrong or I dont understand something about baking and or unity because my smaller props are suffering similiar situations or errors from unity "There are __ objects in scene with overlapping UV's" and I do not want to continue making props if I am doing something wrong as it will just waste time. Apologies also as this is my first time doing game design and working with unity so my terms and knowledge is still growing as I go along -thanks for any help you can possibly give though!
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Hey! Lightmap seams can be tricky to solve. Judging from the Blender viewport, you seem to have placed your UV seams appropriately. Make sure that you place your lightmap UVs in the second UV channel, and uncheck Generate Lightmap UVs in the mesh import settings.

    Have you tried enabling Stitch Seams option in the Mesh Renderer component? That should help alleviate the problem a bit.

    Another thing you could try is tweaking filtering settings. In the Lighting Settings window, set filtering enum from Auto to Advanced. I would suggest you try using less aggressive filtering settings for Gaussian filtering, as it tends to over-blur lightmaps.
     
  3. mcknll16

    mcknll16

    Joined:
    Oct 12, 2020
    Posts:
    2
    do you know of any good tutorials I can research then on this advanced filtering setting because I have zero idea what any of these new settings are good for and i'm trying hard to figure out all the terms and settings for lighting but it's becoming pretty difficult when it comes to setting a scene up lol
     
    Last edited: Feb 11, 2021
  4. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    Take a look at these pages:
     
  5. Alverik

    Alverik

    Joined:
    Apr 15, 2016
    Posts:
    417
    Disabling Denoising fixed it for me. Thanks.