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.

Question Terrain Jittery

Discussion in 'World Building' started by Dwight_P, Jun 15, 2022.

  1. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    42
    Hello,

    So I have a question regarding the heightmap resolution for the terrain. I noticed when the heightmap is increased the terrain becomes extremely jittery and the jitter cannot be smoothed out. In fact, smoothing it causes it to scatter which makes it worse. Shouldn't the higher resolution on the heightmap allow for more detailed control and better collision, not worse?

    upload_2022-6-15_11-49-32.png
     

    Attached Files:

  2. mattb-unity

    mattb-unity

    Unity Technologies

    Joined:
    Feb 7, 2020
    Posts:
    52
    What version of Unity are you using here? Also, are you using terrain tools package at all or just the tools in the editor?
     
  3. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    42
    Sorry, I should have included that originally.

    Unity Version: 2021.3.4f1
    Terrain Tool Version: 4.0.3
     
    mattb-unity likes this.
  4. mattb-unity

    mattb-unity

    Unity Technologies

    Joined:
    Feb 7, 2020
    Posts:
    52
    Thanks! One last question, is this using a heightmap you imported?
     
  5. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    42
    No, it is not. The terrain is entirely generated / sculpted within Unity. It was version 2021.3.3 that it was sculpted. I don't recall the "f" variant.
     
    mattb-unity likes this.
  6. mattb-unity

    mattb-unity

    Unity Technologies

    Joined:
    Feb 7, 2020
    Posts:
    52
    Ok thanks for all the info. May take a few days but I'll try and see what I can find out about this.
     
  7. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    42
    I may have narrowed down part of the problem. Before I upgraded versions I used the Terrain Toolbox => Utility => Split to take a bunch of large chunks into smaller chunks for general culling / performance reasons. It wasn't until after I upgraded to Unity version 2021.3.4f1 that I had an issue. I was playing around with it a bit and noticed that if I increase the height and width of the terrain to a much larger scale the artifacting goes away.

    - Test Terrain 1 -
    Height: 62.5
    Width: 62.5
    Heightmap Res: 513
    Results: No Artifacting

    - Test Terrain 2 -
    Height: 62.5
    Width: 62.5
    Heightmap Res: 2049
    Results: Artifacting

    Higher the heightmap is increased the worse the artifacting it. Lower the heightmap is a lot of sculpting detail lost.
     
  8. mattb-unity

    mattb-unity

    Unity Technologies

    Joined:
    Feb 7, 2020
    Posts:
    52
    There isn't an easy answer to this one that I know of, and asking around the team hasn't produced any answers either. If you're able to reproduce this consistently, I'd recommend going ahead and filing a bug report so we can dig in and figure out what's happening.
     
  9. jordansean10

    jordansean10

    Joined:
    Aug 28, 2020
    Posts:
    5
    I'm seeing this same issue.

    Windows
    Unity 2021.3.0f1
    Terrain Width 1000
    Terrain Length 1000
    Terrain Height 100

    Heightmap Resolution 4097 x 4097

    Changing the Heightmap Resolution to 513 x 513 pretty much fixes the issue but I'd prefer to have more control.
    hieghtmap-issue.png