Search Unity

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:
    32
    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:
    161
    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:
    161
    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:
    4,295
    Did you file a bug report?
     
  6. Win3xploder

    Win3xploder

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

    Win3xploder

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

    ThatProgrammerJack

    Joined:
    Jan 6, 2019
    Posts:
    32
    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:
    42
    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.
     
    beatsrusty and ABCodeworld like 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.
     
  11. Fruniak

    Fruniak

    Joined:
    Apr 23, 2019
    Posts:
    1
  12. Kas_

    Kas_

    Joined:
    Dec 27, 2017
    Posts:
    72
    Running into this issue 2023.1.5f1
     
  13. Rishi02

    Rishi02

    Joined:
    Aug 17, 2021
    Posts:
    1
    Untick "Affected by density scale" in the adding menu.
     

    Attached Files:

  14. Smith_076

    Smith_076

    Joined:
    Feb 6, 2020
    Posts:
    17
    Yeah using terrain tools fixed it for me, im on 2022.3.10f1
     
  15. beatsrusty

    beatsrusty

    Joined:
    Apr 14, 2021
    Posts:
    1
    Disabling neighboring terrains and keeping the one I'm working on enabled stopped the crashing and I am able to paint grass details again, thanks!