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

[solved] Point light going through mesh

Discussion in 'Global Illumination' started by Nanospin, Jul 26, 2016.

  1. Nanospin

    Nanospin

    Joined:
    Jul 9, 2014
    Posts:
    19
    Hi everybody,

    I have created a point light to illuminate the underneath of my spaceship.
    The problem is that the light seems to going through the mesh.
    I think I have the same issue with a directional light set to illuminate the global scene.
    I read the documentation but I am a beginner an may be I missed a key point.
    I spent few hours modifying parameters, I have checked the normal of the mesh but nothing improved...
    I wonder If you have some tips / solutions to suggest.

    Do you need more information to evaluate the problem ?

    Thanks a lot for your help

    Regards

    Arnault
     

    Attached Files:

  2. Nanospin

    Nanospin

    Joined:
    Jul 9, 2014
    Posts:
    19
    I understood few things, first:
    - I need to use deferred mode in order to enable multiple light shadows
    - I need that object cast shadows (obvious, but I didn't use it)
    - I need to scale things in order to not have too close objects for unity (I had very small scales, and as the max shadow distance, I have the feeling there is a min shadow distance... Am I right ? )
    - carefully set Bias value.

    Although all these considerations, I still have shadows issue (Shadow acne ?)
    see attached picture, and it seems to depend of the camera position.
    Help is welcome :)

    For a newb, the lighting system is not easy to master, I am really looking forward more tutorials and specific application (for example, outer space environment)

    Thanks for reading :)


    Edit problem solved:

    - Shadow distance helps to solve weird illuminates edges
    - That I thought was shadow acne is in fact a superposition of meshes. At a certain camera distance, illumination system is not able to distinguish the thin distance between two meshes that are almost superposed and don't know which surface take into account. So it illuminates at the same time the skin mesh (in white) and the structure mesh (in black)
     

    Attached Files:

    Last edited: Jul 31, 2016
    tinnz likes this.
  3. kami1339

    kami1339

    Joined:
    Oct 3, 2018
    Posts:
    6
    HI
    1-Any object can have children.
    2-you should add mesh cillider to each one of child
    i am sure this is solve!