Search Unity

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:
    32
    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:
    25,340
    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 ;)
     
    wyatttt and GameDevCouple_I like this.
  3. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    32
    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:
    25,340
    Yep as far as I know @wyatttt has info on it. Could be a while though.
     
  5. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    1,742
    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:
    32
    When you say awhile, are we talking years?
     
  7. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    25,340
    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.
     
    GameDevCouple_I likes this.
  8. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    32
    @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:
    25,340
    No, I have not said the Unity terrain comes with tessellation.