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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Light Leaks

Discussion in 'General Graphics' started by joshcamas, Mar 19, 2018.

  1. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,268
    Hello friends :)

    Check out this wonky light leak I'm gettin:





    Strange, aye? Oh, and my lightmapper's resolutions are 2, and my parameters are Default-LowResolution.
    I have a big open world, so having high quality lighting isn't really gunna work, from my experience.

    Any thoughts? It ain't pretty ^_^

    Josh
     
  2. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    You must increase lightmap resolution or lightmap scale for your important models

    This problem is only related to lightmap resolution
     
    joshcamas likes this.
  3. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,268
    Alright, turns out the issue is a bit more complicated.

    When I have the house in a modular form (many meshes) the light doesn't leak.

    However, when I merge the house into a single mesh, the light leaks happen!

    *thinking emoji*
     
  4. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    Each model has its own UV space (lightmap UV)

    For Example :
    1 mesh with 1000 poly = 10 unit uv space for each poly
    10 mesh with 1000 poly = 100 unit uv space for each poly

    In this case (combined model) you can use higher lightmap size (2k or 4K)
     
    joshcamas likes this.
  5. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,268
    This was my guess! How do I change lightmap size?

    I tried switching the lightmap resolution in it's lightmap parameters, and it just makes the gaps higher resolution:
    https://i.imgur.com/vyED9ru.png

    EDIT: Alright, I changed the resolution for the object to be 3, and most of the leaks are gone. This seems like a really high resolution, but I guess it makes sense since the combined object has 26k verts!

    Thank you friend :)
     
    Last edited: Mar 23, 2018