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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Terrain rendering issue on iOS, please help

Discussion in 'World Building' started by bitinn, Mar 24, 2020.

  1. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    958
    Hi all,

    So I am looking at a very strange Terrain rendering issue that only appear on iOS Metal (not on macOS Metal, not on Android Vulkan, not on Windows DirectX), it looks like this if we strip the scene down to its terrain:

    IMG_0100.jpg

    I am completely bewildered by why there are random holes in the terrain mesh; we are using the built-in pipeline with default unity terrain shader, this issue only appears on iOS.

    Any clue on what on earth might be happening here? The holes even flicker for some reasons, as if some vertices are getting offset by something constantly.
     
    pokruchin likes this.
  2. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    958
    To add, this only happens if I enable "Draw Instanced" on terrain for iOS.
     
  3. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    958
    The more I look at this Draw Instanced issue the more it feels like a bug, so I submitted one: case 1230409, if anyone from Unity can take a look at my sample, I would be grateful!
     
  4. akiraddd

    akiraddd

    Joined:
    Jan 9, 2015
    Posts:
    8
    I'm encountering the same issue with Terrain when enabling Draw Instanced on IOS...first with 2019.1 and I've verified the issue persists in 2019.2.7. Which version of Unity are you on? I'm not seeing the issue in Android/OpenGL, just IOS/Metal.

    For now we're keeping it disabled.
     
    Last edited: May 8, 2020
  5. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    958