Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Tessellation option in HDRP?

Discussion in 'Shader Graph' started by DigitalAdam, Apr 15, 2019.

  1. DigitalAdam

    DigitalAdam

    Joined:
    Jul 18, 2007
    Posts:
    1,201
    How do I create a Phong based tessellation shader using Shader Graph?

    Thanks.
     
  2. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    163
    Tessellation is not currently supported in Shader Graph, but it is on our task list and we're working on it.
     
    Euri, barrybaz, johanneskopf and 11 others like this.
  3. zhuchun

    zhuchun

    Joined:
    Aug 11, 2012
    Posts:
    433
    Yes, please, we need tessellation for weather-related shaders
     
    Nova-Shade likes this.
  4. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    99
    I'd like to add that having the tesselation node with additional technical information/inputs, like the tesselation amount, the distance where it fades, etc (like Unity did with the HDLit shader) would be kind of essential.

    In Unreal, the tesselation node has few parameters to make it fade with distance (though perhaps it's all handled automatically and I haven't noticed?).

    Would it make sense to add POM as about the same time as tesselation in the Shader Graph?
     
  5. zhuchun

    zhuchun

    Joined:
    Aug 11, 2012
    Posts:
    433
    Oh, that LOD-ish feature would be neat!
     
  6. Horus_Sungod42

    Horus_Sungod42

    Joined:
    Oct 30, 2014
    Posts:
    99
    It's in the standard shader of the HDRP, hopefully it's not unreasonable to get it in the graph.

    I briefly saw an Unreal tutorial which had a fairly complex way to LOD out the tesselation, with a bunch of nodes, but it seemed quite inconvenient. Hence this suggestion to have these features built in!
     
  7. BitAssembler

    BitAssembler

    Joined:
    Jul 13, 2017
    Posts:
    90
    @alexandral_unity Any news on the HDRP shader graph lit tessellation master node? Couldn't find a note on the roadmap.
     
    hippocoder likes this.
  8. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    I too have use for low level tessellation but not the performance losses that come with typical high level implementations that Unity currently uses.
     
    BitAssembler likes this.
  9. fdiba

    fdiba

    Joined:
    Aug 17, 2018
    Posts:
    6
    Is tessellation now supported in Shader Graph ?
     
  10. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    No.
     
  11. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Tags really need to be removed, they just don't help when every post bar maybe 1% is asking for help.
     
  12. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Just wondering if we have tessellation yet
     
  13. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Just wondering where do I find the LitTessellation shader.
     
  14. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Where did u see the road map
     
  15. zhuchun

    zhuchun

    Joined:
    Aug 11, 2012
    Posts:
    433
    It's HDRP/LitTessellation if you're using HDRP
     
  16. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Not seeing it , is it platform specific?
     
  17. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Here is what im seeing
    Screen Shot 2019-09-11 at 10.01.07 PM.png
     
  18. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Those are shader graphs, Lit Tessellation is standard HDRP shader. You select it as your shader from your material.
     
  19. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Yea I realized after making post :( so this doesn't really help me. Do you know if shader graph will support tessellation
     
  20. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    It does not support it today. I'm sure the SG version is buried somewhere on their "would be nice to have" -list but there's no indication of any kind on current github repository that they are adding this any time soon.
     
  21. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Oooo no , this is a problem ... crap
     
    barrybaz likes this.
  22. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    You can still pick tess from the base shader if it's any help:
    upload_2019-9-12_16-53-33.png
    It may be sufficient if you can generate the needed textures via custom shader (I do this for water) then feed these into HDRP lit tess.
     
    AlanMattano likes this.
  23. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Thanks for pointing that out but unfortunately it will not work since its a custom shader that rides ontop of ECS allowing a paint context where I can paint 100s of different textures.

    here is the prototype

     
    John1515, kilik128 and Franckitou like this.
  24. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Problem is Im trying to move to SRP because Hybrid renderer testing for the build in renderer will fade after 2019.3 But tessellation is not available in SRP soo im not sure what to do here. Any suggestion ?
     
  25. michaelybecker

    michaelybecker

    Joined:
    Jun 18, 2014
    Posts:
    19
  26. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Thanks for the reply. Do you know if there are any example for Metal tessellation?

    I’m really hoping this get added to the shader graph not sure I have cycles to burn on this
     
  27. michaelybecker

    michaelybecker

    Joined:
    Jun 18, 2014
    Posts:
    19
    Presumably the standard shader can cover metallic use cases? But I don't know. And I hear you, SG is very impressive in some ways but still lacking core shading features (stencils, anyone?) That, imo, don't quite catch it up to Unreal's material editor.
     
  28. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Im ok with waiting for shader graph to catchup with Unreal material editor. All I really want is some sort of roadmap for what is coming so I can plan accordingly. Ive brought it up before, finger crossed Unity posts some blog with this.
     
    John1515 likes this.
  29. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    how do you rebuild the normal from the displacement?

    also is there still no update for SG support? @alexandral_unity
     
  30. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    There's a normal node you can use, but I generated mine with ddx/y
     
  31. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    so it's outputing a normal map then?
     
  32. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Yes I build 2 textures, height and normal then read them in a tess shader, but can use shader graph's built in height to normal function and skip that step.
     
  33. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    But if you use SG then you don't have tess
     
  34. NerdIt-

    NerdIt-

    Joined:
    Oct 19, 2018
    Posts:
    24
    Any tessellation yet?
     
  35. JulinoleumOne

    JulinoleumOne

    Joined:
    Nov 2, 2016
    Posts:
    13

    I cant see it in the latest Beta :(

    upload_2019-10-25_11-6-10.png
     
  36. BitAssembler

    BitAssembler

    Joined:
    Jul 13, 2017
    Posts:
    90
    Why do we get no official words on this matter? When can we expect at least a roadmap point for SG tessellation support? @alexandral_unity ? It would be great if the HDRP guys could be as communicative as the guys in the Unity Teams forum; @ryanc-unity always replies within 24h.
     
  37. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    My gut feeling is this is in works and will drop in 2019.3 :)
     
  38. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    Will URP support tessellation with shadergraph
     
    Lars-Steenhoff likes this.
  39. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    I highly doubt 2019.3 is getting this on SG, there's zero work done for this on the SRP github, wip branches usually arrive well beforehand there + pretty certain 2019.3's HDRP featureset is locked already in a way it'll not get bigger changes like this easily anymore.

    I'd say at some point in 2020 earliest would be more realistic estimate but even that is bit unclear because this doesn't seem to be very high priority task for HDRP team.
     
  40. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,697
    That’s a bit depressing. Ok we bill have to work around this somehow, juggling so much tech and can’t get them all to fit. Is there some sort of feature comparison table for build in render hybrid render URP and HDRP.
     
  41. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Umm 2019.3 going to be released right, including HDRP out of preview? is Stable HDRP going to be released without tessellation support on shadergraph??
     
  42. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    It doesn't seem to be a very high priority atm. There's no official word where this is going at but it's certain it's not going to be on HDRP 7 when it fully releases.
     
  43. ngerbens

    ngerbens

    Joined:
    Nov 20, 2017
    Posts:
    33
    Oh boy, we need tess in the SG.
     
    Lars-Steenhoff likes this.
  44. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    It would be handy, yes. We'd also need terrain graph.

    For the time being, if you need to render custom effects with tessellation, you need to use stock HD tessellation shader and feed it with rendertexture with the custom data. Obviously this is additional resource wasted when you could just modify the thing directly on same shader.
     
  45. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    I was trying to use the tessellation shader just now, giving it a height map to control the tessellation height, and I found that I was unable to change the offset of the heightmap using SetTextureOffset. Has anyone else tried this or had success getting the height map to move independent of the base color map?
    SetTextureOffset("_HeightMap", someOffset)
    wasn't doing anything. Does HDRP not support changing the offset of textures other than BaseColorMap?
     
  46. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    Could you briefly explain how you go about outputing the texture from the shader into the Tessellation material? Can ShaderGraph output textures yet? Or are you using a standard shader and somehow storing the result in memory, or as an asset?
     
  47. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Either via https://docs.unity3d.com/Manual/class-CustomRenderTexture.html or feeding it RenderTexture rendered with additional scene camera.
     
  48. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
  49. Franckitou

    Franckitou

    Joined:
    Jun 3, 2015
    Posts:
    16
    it will be great to have a node "Mesh smooth" like, that allows to tesselate, and smooth the angles of the mesh
     
  50. Subliminum

    Subliminum

    Joined:
    Nov 9, 2017
    Posts:
    97
    Would be great to have tessellation at all haha
     
    Lars-Steenhoff likes this.