Search Unity

Terrain that are closer to camera stop rendering

Discussion in 'Editor & General Support' started by JasDeVon1995, Apr 4, 2019.

  1. JasDeVon1995

    JasDeVon1995

    Joined:
    Nov 4, 2014
    Posts:
    8
    Hello,
    i have this really strange thing happening to my terrain i spend days trying to figure out what's going on without result.
    i attached screen shots, basically as i move towards the terrain, parts of the terrain will stop rendering and turn invisible.
    Any help is appreciated,
    thanks!
     

    Attached Files:

  2. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    715
    I would imagine you have looked at adjusting the camera's clipping plane settings?

    Also, does this happen in the editor's camera, or just the in-game player's camera?
     
  3. JasDeVon1995

    JasDeVon1995

    Joined:
    Nov 4, 2014
    Posts:
    8
    yeah it only happens in player's camera but i my clip plane is already 0.01 and far 1000.
    I forgot to mention that it seem to only happens to terrains that i made height adjustment with code in runtime, the terrain that was made in editor doesn't have this problem. But it still doesn't make sense because the terrain looks perfectly fine in editor.
    Anyway i will keep this updated if i find anything
     
  4. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    715
    maybe, you are creating a mesh and assigning a new material at runtime???

    if so it's possible the shaders were not included in the final build.

    I have (in the past) had to include shaders for assetbundles, which could be similar to your issue..