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. Dismiss Notice

Question about baking issues

Discussion in 'General Discussion' started by kolovef1, Jul 27, 2023.

  1. kolovef1

    kolovef1

    Joined:
    Jul 17, 2023
    Posts:
    4
    Even though I've set the parameters to a high value, there are still many artifacts and a low-resolution feeling after baking. Strangely, when I move the light source closer to illuminate the surface, it looks fine, but as soon as I move away from the light source, there are a lot of artifacts again. The UV mapping seems fine, and I've checked the option to generate lightmap UVs. Just to mention, I'm using Unity 2018.

     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    Any chance you can upgrade? We're at 2022.3 LTS now ... ;)

    Anyway, your lightmap size of 512 is pretty low, try cranking that up. You should know that many parameters such as "Lightmap resolution (texels per unit)" affect how much space the lightmap requires to create this many texels per unit, but if the overall lightmap size is too small to fit everything in there, the result will be blurred. You may also see such logs during lightmap baking in the Console.

    And you can actually get better results turning some parameters down as much as you can if they contribute little to the overall look while tuning up those that really have a big impact on looks.
     
  3. kolovef1

    kolovef1

    Joined:
    Jul 17, 2023
    Posts:
    4
    In this scene, I didn't place any lights, and all the lighting is based on emissive materials. So, when I increased the indirect light samples further, the situation improved significantly. Of course, the results also depend heavily on the Unity version, and this version is quite outdated, but currently, I have no choice but to use it. I'll have to make do with this. Thank you for your response and assistance.:)