Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Terrain Detail Meshes not working in HDRP?

Discussion in 'Graphics Experimental Previews' started by Haugkall, Jul 8, 2019.

  1. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    33
    I can't seem to render detailed objects or grass on my terrain. I googled it and in 2018 there were no terrain shader available for HDRP. Is that still the case or am I missing something? Can you use grass, trees and detailed objects in HDRP or is that a future feature available in...I don't know 6 months maybe?
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    The Terrain shader is included by default with HDRP and we are using it. It is fantastic actually, once you get into height blending properly.

    What you want isn't a terrain shader but detail mesh shader, and Unity are apparently working on this so I'll edit the title to clarify.

    Unity really is dragging their butts on that one, it's pretty sad really. If it's not up by 2019.3 they've basically shipped HDRP with holes in it and not many details ;)
     
    wyattt_ and MadeFromPolygons like this.
  3. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    33
    Thank you, so we just have to wait and grass and trees will eventually be available for the terrain editor and HDRP.
     
  4. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Yep as far as I know @wyatttt has info on it. Could be a while though.
     
  5. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,981
    Ive been tooting my horn about this one for a while, its basically the only hole left to fill to make HDRP a one-stop solution that I will never return from for my current project.

    Just FYI, its not that hard to get around, as in for now you can place meshes yourself using an other shader + polybrush for scattering. Its a pain in the *** but it beats having no detail meshes on your terrain.

    But ofcourse whatever actual detail mesh shader unity produces will be better as itll probably include performance optimisations allowing placing a lot more stuff. But using GPU instancing you can do a great deal right now anyway, and even more if you avoid using game objects (graphics.drawmeshinstancedindirect or similar).

    Good luck and post back if you have any issues getting a placeholder detail system working such as what I mentioned above! :D
     
  6. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    33
    When you say awhile, are we talking years?
     
  7. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Dunno, I'm not staff, but if there is one thing I absolutely 100% know about Unity is... don't wait. If it's not there now, consider it not there.
     
    DGordon and MadeFromPolygons like this.
  8. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    33
    @hippocoder
    Another question if you don't mind, in your first reply you said a terrain shader already comes with unity that support tessellation? It doesn't seem to be enabled by default, how would you change it? Just for reference here is what it currently looks like for me.
     
  9. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    No, I have not said the Unity terrain comes with tessellation.
     
  10. EddieChristian

    EddieChristian

    Joined:
    Oct 9, 2012
    Posts:
    725
    This Still isn't working with Unity 2019.2.10f1 and the latest HDRP packages installed. I'm actually trying to teach a Unity class and having this not working is a Huge Issue! I would like Unity to actually respond on a date that this will be fixed...
     
  11. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Afaik, this isn't going to get "fixed" as the grass rendering on terrain is terribly outdated atm which is probably the reason why HDRP never supported it. To me it feels like it's not a question if they are able to do it, it rather that they don't want their next gen renderer to draw grass in such bad manner. You can already treat your grass etc objects as trees and use that mode on terrain tooling like Unity did with Book of the Dead environment. Or alternatively wait for new terrain decoration tools from Unity (2020-2021?).
     
  12. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    New landscape tools are introduced in 2020.1/.2 so terrain might get deprecated.
     
  13. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Highly doubt the terrain technology will be deprecated. Again, there's nothing wrong with it. The result I can achieve with it go far further than most AAA titles, but likewise also cost more to render. 8 full HDRP splats with crisp height blending is very, very good.

    What are people smoking? :p The perf ought be addressed with some graphine based scheme or cache scheme, and then that's it.

    It's only vegetation and lack of height blending and / or tool improvements needed. Hehe I said "only" but vegetation is a difficult job for most people.
     
  14. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    I need this 4 years ago.
     
    hippocoder likes this.
  15. Goatogrammetry

    Goatogrammetry

    Joined:
    Apr 27, 2017
    Posts:
    197
    So you mean I just spent 4 hours trying to figure out why my detail rocks were drawing with a white texture, and its just because Unity was too... what? Lazy or indifferent to my mental health and limited time? I mean how hard is it to make a warning saying "This doesn't work in HDRP"? This keeps happening to me where I spend days trying to do some simple thing in Unity and it turns out its silently broken because they like it that way (GPU light baking not working if you use LODs! For god's sake and no documentation stating this! That was 2 days down the drain and very demoralizing). I get that HDRP is 'a work in progress' but I'm trying to create photo-real assets that will be compatible with Unity in the future (which is stupid I guess?), and I keep wondering why my simple friggin textured meshes are defective.
     
  16. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    700
    Unity just isn't ready for large open-world environments yet, at least out of the box. Even the old detail system in the built-in renderer is very slow and inefficient. If you are making a smaller-scale environment, you could just manually place your rocks, or scatter them with polybrush.
     
  17. pbritton

    pbritton

    Joined:
    Nov 14, 2016
    Posts:
    160
    Is there any updates for this? I felt like I wasted my time doing the terrain only to find out after the fact that this feature is broken and no one seems to have an answer.
     
  18. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    Dude, I'm joining the club.

    using trees for rocks is cool but taxing.
     
  19. Storoj_A

    Storoj_A

    Joined:
    Nov 25, 2021
    Posts:
    2
    2022 it is and still nothing have changed :D
     
  20. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789
    This isn't true. Terrain Detail meshes for HDRP have been added since 2021.2 alpha, almost a year ago.

    upload_2022-2-5_14-42-21.png
     
  21. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
  22. Grimreaper358

    Grimreaper358

    Joined:
    Apr 8, 2013
    Posts:
    789

    Well the issue is marked as not being fixed in 2021 cycle
    For 2022 forward it's fixed. You can wait on that or use the current beta leading up to the release if you can afford to do that.

    upload_2022-2-5_14-59-11.png

    I've never tried to use terrain detail meshes with light layers so this is the first I'm even finding out this was an issue.
     
    DEEnvironment likes this.