Search Unity

Question What are these shadow artifacts called?

Discussion in 'High Definition Render Pipeline' started by seoyeon222222, Jan 5, 2024.

  1. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    184
    1.png


    How do i solve this problem?
    There are multiple effectors for lights and shadows that are affecting this issue,
    so it's hard to pinpoint the exact cause for me

    To simplify the problem,
    This happens even when there is no directional light, and only a one single light.
    It even happens when I remove the shadow related options in post-processing volume

    What is the problem?
     
  2. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    866
    looks like the normals are off? Is this an imported model? if yes, can you try to set imported normals to calculate and see if issue goes away?
     
  3. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    184
    Yes it is imported model (fbx) made with blender
    The current settings are as follows
    upload_2024-1-6_1-42-3.png
    Normals : Import
    Normals Mode : Area And Angle Weighted

    I tried all the options in ten different combinations.
    But none of them had any effect on the problem.
    - Import + Unweighted (L) / Unweighted / Area Weighted / Angle Weighed / Area And Aangle
    - Calculate + Unweighted (L) / Unweighted / Area Weighted / Angle Weighed / Area And Aangle



    I wondered if this was a problem with the original model, so I also tried the following tests.
    Create a capsule (Create > 3DObject > Capsule)
    If I put it in the same position and move it around, it looks like this.
    t2.gif

    Changing the settings of a light has a big impact.
    Could the size of the light be an issue?
    I'm using a Spot light.
    The size of the Outer Angle is quite large, reducing it seems to alleviate the problem.

    However, it's questionable whether that's a problematic value.
    If i actually needed a light of that size and shape, the problem would still be the same.
    Values from other inspectors also contribute to the problem, so it's hard to tell if that's the problem

    How do I go about solving this problem?
    upload_2024-1-6_2-5-17.png
     
  4. Qleenie

    Qleenie

    Joined:
    Jan 27, 2019
    Posts:
    866
    You could try to use a "custom spot angle" in the shadows section; I think it's for those cases when you have an extreme spot angle
     
    seoyeon222222 likes this.
  5. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    184
    Oh thanks, that seems to be having a good effect.
    I searched the documentation for that option and couldn't find any detailed explanation or information.
    I was wondering why or how it happens, but it was hard to find a clue

    Luckily, I came across the following information
    I'm leaving the link in case anyone comes across it after this.
    https://forum.unity.com/threads/spo...uter-angles-leak-light-through-walls.1145702/


    Thank you, that helped me resolve the issue. :)