Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Is terrain grass working on HDRP yet?

Discussion in 'World Building' started by GameDevCouple_I, Feb 13, 2019.

  1. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    1,738
    As the title, does it still come out as pink or does it at least draw now?
     
    SsuperSsimple likes this.
  2. SsuperSsimple

    SsuperSsimple

    Joined:
    Apr 18, 2013
    Posts:
    8
    I have the same question. I have upgraded my Grass details to Render in HDRP Dragging them and placing them on the terrain they render fine but using the paint tool they are pink in the editor. Trees are painting fine and I can paint them on with the tree painter but don't really want to delete all the grass detail and repaint. UNITY PLEASE answer this question. Poor guy above me has posted it all over the forums and been given the run around every time.
     
    GameDevCouple_I likes this.
  3. wyatttt

    wyatttt

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    250
    Unfortunately, there are no shaders for grass in HDRP at the moment
     
    GameDevCouple_I and hippocoder like this.
  4. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    25,331
    There probably is buried under all that snow. At least that's what I tell myself.
     
    SsuperSsimple likes this.
  5. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    1,738
    Thanks for getting back to us wyatttt!

    If anyone knows the bare minimum required to get a shader working with grass on HDRP then that would be amazing knowledge to share!

    Whether via shader graph or by hand, I dont mind doing some heavy lifting shader work to get this running as its the only thing making HDRP a pain to use. The tree brush just is not the same otherwise I would use that
     
  6. Flamacore

    Flamacore

    Joined:
    Dec 17, 2013
    Posts:
    61
    Hey all :) So here I've managed to get a very basic core shader working on terrain detail painting. Billboard mode and coloring does not work as of yet but it does the job. As I've stated on github as well, no idea about performance but on a few tries, it looks just fine :)

    Here you go for starters:
    https://github.com/flamacore/UnityHDRPTerrainDetailGrass
     
  7. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    1,738
    You Sir/Madam, are a saint!

    This is amazing, thanks so much. Hopefully between the amazing people here on this forum we can get the coloring and billboarding working too :)
     
  8. Flamacore

    Flamacore

    Joined:
    Dec 17, 2013
    Posts:
    61
    Updated it with experimental wind. :)
     
  9. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    25,331
    The hero we needed and never deserved that we never saw coming.
     
    Flamacore and GameDevCouple_I like this.
  10. gdespaux2010

    gdespaux2010

    Joined:
    Feb 16, 2017
    Posts:
    7
    Is this still the case with the full release of 2019.1, or have they fixed the terrain to be compatible with the latest version?
     
  11. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    479
    I tried on 2019.1 and it was still broken. Unity really needs a better mesh painting tool like Unreal's Foliage.
     
  12. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    435
    Hi,

    >or have they fixed the terrain to be compatible with the latest version?
    There is currently no plan to support Grass detail in HDRP. Alternative solution are worked on. No ETA.
     
  13. gdespaux2010

    gdespaux2010

    Joined:
    Feb 16, 2017
    Posts:
    7
    That's...disappointing. Is there any sort of reason?

    The lack of support on this, what appears to be simple issue, makes me feel like the oddball, thinking that grass on a terrain is a normal thing to try and do...
     
  14. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    479
    Rendering basic grass planes is actually very inefficient due to the overdraw. It's also tied to the old built-in renderer, so it's not surprising that it's not supported. I would say to use detail objects for grass, but that doesn't seem to work properly either. I am happy to hear about an alternative solution though.
     
  15. gdespaux2010

    gdespaux2010

    Joined:
    Feb 16, 2017
    Posts:
    7
    I can understand that, then. But I hope the devs can understand how odd it is to open a game engine, try to use the "released" SRP, and be unable to use the built-in solution for terrain and grass.

    What this really means, is that I'm unable to use the shiny new VFX Graph or Shader Graph, because they're somehow locked behind SRP as well, which my project is incompatible with due to the fact that my world needs grass and trees.
     
  16. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    1,489
    Keep in mind that the HDRP is still WIP - with an out-of-preview release expected for 2019.3.

    Flamacore made a hack for HDRP grass - see post #6. Have you tried it yet?
     
  17. crashTX

    crashTX

    Joined:
    Dec 2, 2012
    Posts:
    10
    Well here we are in 2019.2 beta and 2019.3 alpha...what world does Unity live in? A 2D world? Heads up.... 3D terrain... composed of grass and water. So this is the second statement I have heard from someone @ Unity that there are no plans currently for grass or oceans for HDRP. If that's the official stance say so... don't want to waste any future dev work if I have to move to a different platform.
     
    racarate likes this.
  18. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    479
    Well, HDRP is still in preview. And it has already been mentioned by @SebLagarde that there is alternative to the old detail sprites being worked on.. although I would be curious to know what that is and when it is coming. Hopefully something like Unreal's foliage tool. As for "oceans", you can probably make something decent enough with the shader graph, but I wouldn't expect too much unless you know what you are doing. Unreal doesn't have a built-in water solution either.
     
  19. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    787
    Just out of curiosity -- is this being planned for ECS / DOTS instead of shader instancing?


    How does doing grass with something like ECS compare to doing it solely in the shader?

    The MegaCity demo makes it seem like this could be feasible, but I'm still not quite sold. Anyone tried something like this?
     
  20. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,366
    Last time i heard this is their actual plan, to include the grass/terrain detail in DOTS instancing. i assume GPU instancing are part of DOTS Instancing , Don't take my word for the last as i'm still trying to confirm what is DOTS instancing actually
     
    awesomedata likes this.
  21. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    787
    https://github.com/Unity-Technologies/DOTS-StreamedInstancingSample

    Not sure where this came from, but I found this someplace -- Does anyone know an article or tutorial this github is associated with?

    Seems like the new DOTS-oriented grass/object instancing stuff.
     
    Last edited: Jun 17, 2019
    GameDevCouple_I likes this.
  22. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,366
    Discord
     
  23. Refeas

    Refeas

    Joined:
    Nov 8, 2016
    Posts:
    30
    Well, that's quite a long stretch for such a basic feature. The only way right now is probably to use Vegetation Studio Pro, which still has just a limited support of HDRP tho. It is also built on top of DOTS.

    We're in prototyping phase with our project, but not being able to get together a basic picture of game visuals due to missing features like grass is very limiting.

    There was a HDRP grass hack by Flamacore but doesn't work anymore since 2019.1+ for some reason.

    Did anyone figure out atleast some temporary solution for this?
     
    ROBYER1 and GameDevCouple_I like this.
  24. TerraUnity

    TerraUnity

    Joined:
    Aug 3, 2012
    Posts:
    714
    We've setup a GPU instanced vegetation rendering solution to be released for our upcoming product. The videos are from the demo scene in HDRP:



     
  25. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    166
    Having issues here also, far from ideal!
     
  26. Sonorpearl

    Sonorpearl

    Joined:
    Sep 8, 2017
    Posts:
    32
    @SebLagarde Any updates on an "Alternative" solution to the Problem? Would be really nice to have some kind of Terrain Grass in Unity 2019.2. :)
     
  27. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    166
    Sonorpearl likes this.
  28. Psychoram

    Psychoram

    Joined:
    Jun 1, 2014
    Posts:
    3
    9 more votes!!!!
     
    awesomedata and ROBYER1 like this.
  29. Haugkall

    Haugkall

    Joined:
    Jan 25, 2018
    Posts:
    32
    Any updates on grass and other detail objects in HDRP, you could always add grass later but they make a big difference in achieving the final look to your scene.