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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Geometry behind other becomes sivible

Discussion in 'General Graphics' started by Fernan7719, Feb 13, 2023.

  1. Fernan7719

    Fernan7719

    Joined:
    Jan 5, 2022
    Posts:
    7
    Hello, I´m having one issue on my game for android.
    The problem I have is that when an object that is compunds of two or more objects, the objects that they shouldn´t be visible they becomes visibles (i attached an image about my problem) when the player is at certian distance from them.
    I have made a lot of tests (with different resolutions, quality settings, etc) but I haven´t succeded to solve the problem.
    Someboy knows where come from the origin of the problem?
    Thanks
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,455
    How far is far?
    Maybe change the clipping plane on the camera?
     
  3. Fernan7719

    Fernan7719

    Joined:
    Jan 5, 2022
    Posts:
    7
    5 meters more or less.
    I have the clipping planes of the camera near=0.01 and far= 1000.
    The object is a character with clothes so the problem is that parts of the character behind the clothes becomes visible.
     
  4. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    The origin would be z-fighting. Z-fighting - Wikipedia
    The resolution? Could be several things.
    An easy thing would be to increase the size of your outer geometry so it clips less with your inner geometry.
     
  5. Fernan7719

    Fernan7719

    Joined:
    Jan 5, 2022
    Posts:
    7
    Thank you, I´ll try to increase the outer geometry if it works
     
  6. Fernan7719

    Fernan7719

    Joined:
    Jan 5, 2022
    Posts:
    7
    Unfortunatelly increasing the size of the outer geometry didn´t work...:(
     
  7. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,455
    Do you use any custom shaders?
    Also which unity version? Urp/hdrp/builtin?
     
  8. Fernan7719

    Fernan7719

    Joined:
    Jan 5, 2022
    Posts:
    7
    Currently I use a shaders from urp graph and it´s a really simple the shader (difuse,normal and metallic). Also I tested the project with simple default Built in shaders when I started the project and it happened the same problem..