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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Terrain Jittery

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

  1. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    40
    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:
    17
    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:
    40
    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:
    17
    Thanks! One last question, is this using a heightmap you imported?
     
  5. Dwight_P

    Dwight_P

    Joined:
    Feb 26, 2013
    Posts:
    40
    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:
    17
    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:
    40
    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:
    17
    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.