Search Unity

Lightmap and mirrored meshes.

Discussion in 'Global Illumination' started by YOSSI2010, Apr 22, 2019.

  1. YOSSI2010

    YOSSI2010

    Joined:
    Dec 26, 2016
    Posts:
    17
    Hi,
    I would love some help with light mapping.
    I have tried baking using the Unity auto lightmapping and it has some artifacts that I didn't like due to the unwrapping process putting these lines diagonally,
    upload_2019-4-22_22-56-33.png
    so I have decided to make my own UV set for the LightMapper which fixed these and gave me clean cuts.
    upload_2019-4-22_23-10-13.png

    However for some reason even though my scene is completely symmetrical Unity has problems with it, specifically with my walls.
    upload_2019-4-22_22-49-22.png
    I Know that 2 faces on the same UV coordinates should make problems but given my Symmetry i don't have a problem with the lights double exposing my walls.
    I have tried using only one side of lighting and it gives the exact same result,(floor and ceiling lights up on both sides yet the walls have that switcheroo).
    as you can notice there are two light stripes on the left wall that light up fine.

    BTW the original half in blender is actually the left one.

    How would one fix this? or is this a bug in the progressive lightmapper?
    Also Emission materials don't work for me as well I faked Emission using point lights.

    LWRP Unity 2019.1.0f2

    Thank you, Yossi Cohen.
     

    Attached Files:

  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    716
    Since the mirror mesh is sharing the UV space with the original half, you will obviously run into issues due to UV overlaps. There are couple of ways you can mitigate this issue:
    • Merge the mesh into a single object in Blender, and unwrap it as a single object.
    • Split the mesh into original and mirrored variants, and have unwrap them individually.
     
  3. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    1,104

    Is 3-rd option possible, adding secondary UV in 3d modeling software ?
     
unityunity