Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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 Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,727
    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 GameDevCouple 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 Moderator

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

    GameDevCouple

    Joined:
    Oct 5, 2013
    Posts:
    2,514
    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 Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,727
    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 GameDevCouple 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 Moderator

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

    EddieChristian

    Joined:
    Oct 9, 2012
    Posts:
    708
    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:
    1,678
    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 Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,727
    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:
    171
    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:
    538
    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:
    75
    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:
    3,184
    Dude, I'm joining the club.

    using trees for rocks is cool but taxing.
     
unityunity