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 Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Bug Terrain in URP, HDRP — Crash when adding details

Discussion in 'World Building' started by ThatProgrammerJack, Mar 27, 2022.

  1. ThatProgrammerJack

    ThatProgrammerJack

    Joined:
    Jan 6, 2019
    Posts:
    31
    Hi there. I am working on some terrain in a project of mine, and I'm using some of Unity's grass model assets. Every time I paint in grass detail meshes (not billboards, specifically detail meshes), I get a crash. The only way I can avoid this is by slowly single-clicking with a small brush, but this is tedious, and I want to cover a large area quickly. I've tried this on terrain in both URP and HDRP. What can I do?
    Screenshot (30).png Screenshot (33).png
     
  2. Win3xploder

    Win3xploder

    Joined:
    Dec 5, 2014
    Posts:
    158
    Having this same issue come up all the time. Adding large amounts of details at the same time always causes a crash.
     
  3. Win3xploder

    Win3xploder

    Joined:
    Dec 5, 2014
    Posts:
    158
    This bug is really easy to reproduce as well.
     
  4. Deleted User

    Deleted User

    Guest

    Do you guys have GPU instancing ticked while assigning the grass ...do u have a weak GPU??? If yes then try disabling GPU instancing
     
  5. Rowlan

    Rowlan

    Joined:
    Aug 4, 2016
    Posts:
    3,590
    Did you file a bug report?
     
  6. Win3xploder

    Win3xploder

    Joined:
    Dec 5, 2014
    Posts:
    158
    I did.
     
    Rowlan likes this.
  7. Win3xploder

    Win3xploder

    Joined:
    Dec 5, 2014
    Posts:
    158
    The crash also occurs when increasing the density setting in the detail tab of the terrain.
     
  8. ThatProgrammerJack

    ThatProgrammerJack

    Joined:
    Jan 6, 2019
    Posts:
    31
    Pretty sure GPU instancing is not able to be changed in HDRP. Like I think with details it’s automatically set to off (?) so I’m still not sure what’s happening.

    I’m not even using grass in my terrain anymore, working on an apocalypse game now… but in the future I hope I’m able to get such a seemingly simple feature to work.
     
  9. Syco753

    Syco753

    Joined:
    Feb 11, 2013
    Posts:
    37
    I had the same issue Built-in pipeline. I solved for my project:
    I disabled the terrains and just worked on one terrain element at once.
     
    ABCodeworld likes this.
  10. ABCodeworld

    ABCodeworld

    Joined:
    Oct 11, 2020
    Posts:
    5
    Great tip! I was just having this issue, with a central terrain containing the level, and some neighbouring terrains just for visual filler. I disabled the neighbours and now I can paint details again! Thanks.