How to use DISPLACEMENT in Unity! Step by Step Tutorial

Поділитися
Вставка
  • Опубліковано 16 лип 2024
  • In this video, we talk about how to add displacement to materials in your Unity Scenes in the standard pipeline!
    LINKS
    DISPLACEMENT MAPPING SHADER (Free Download)
    assetstore.unity.com/packages...
    UNITY ASSET STORE
    www.therealtimeessentials.com/...
    SNOW 03 MATERIAL DOWNLOAD
    polyhaven.com/a/snow_03
    Disclaimers: All opinions are my own, sponsors are acknowledged. Product Links in the description are typically affiliate links that let you help support the channel at no extra cost.
    The Unity name, logo, brand, and other trademarks or images featured or referred to on my UA-cam channel are licensed from and are the sole property of Unity Technologies. Neither I nor this UA-cam channel is affiliated with, endorsed by, or sponsored by Unity Technologies or any of its affiliates.
    TIMESTAMPS
    0:00 - Introduction
    0:18 - Displacement map download location
    1:05 - Create a material for our maps in Unity
    1:50 - Applying material maps to the material in Unity
    2:35 - Using a height map to simulate displacement in Unity
    4:02 - Using a free custom shader from the asset store for displacement
    4:42 - How to download and install the custom displacement shader
    5:21 - Using the custom shader to create actual displacement in Unity
    6:04 - How to adjust the displacement settings for better effects
    6:30 - Adjusting tesselation settings for performance and realism
    8:05 - Other Unity Tutorials
  • Наука та технологія

КОМЕНТАРІ • 47

  • @TheRealTimeEssentials
    @TheRealTimeEssentials  2 роки тому

    Hi everyone! Let me know if you have any questions in the comments below! :)

    • @westparezal
      @westparezal Рік тому

      And how to read this tessellated geometry for any kind of animation?

    • @lokosstratos7192
      @lokosstratos7192 Рік тому

      hey is it possible to add displacement and roughness map into the terrain texturing? the only option i see is a diffuse map, normal map and a mask map.
      There is a smoothness and metallic slider however you cannot put data from the texture images

  • @samisalama3033
    @samisalama3033 2 роки тому +11

    how to do that in urp?

  • @prysma2057
    @prysma2057 4 місяці тому +1

    This actually helped me understand what the purpose of displacement maps is, thanks

  • @freyafeige9365
    @freyafeige9365 9 місяців тому

    You're my hero of the day for showing me this shader! :D

  • @PersonausdemAll
    @PersonausdemAll 2 роки тому +1

    Thank you, that was i searched for

  • @azradesignindonesia8372
    @azradesignindonesia8372 2 роки тому +1

    Thanks for the tutorial, it helps me a lot!

  • @StigDesign
    @StigDesign 2 роки тому +3

    seems like there is some tutorials on Tesselation with vertex displace on standar material, i struggle to find one that works on the Unity Terrain in URP on the indevidual texture layers... Do you know how to do it?
    Great Tutorial :D

  • @D3cyTH3r
    @D3cyTH3r 6 місяців тому

    Legend -thank you!

  • @Traucer785
    @Traucer785 2 роки тому

    Hey! Great Tutorial, really appreciate it!

  • @laurisaarinen6259
    @laurisaarinen6259 2 роки тому +1

    Thank you!!!

  • @IsabelaMakiolkaMontingelli
    @IsabelaMakiolkaMontingelli 3 місяці тому

    thank you!!

  • @Yoctopory
    @Yoctopory Рік тому +1

    Does anybody know a way to add tesselation (or at least specular maps.. 😫) to Unity terrain textures? That would be awesome!!

  • @ShotgunChaoZ
    @ShotgunChaoZ Рік тому +1

    when trying to use this feature the materials created based on tessellation turn pink, and i don't know how to fix this

    • @LeGaLiZeDOOMz
      @LeGaLiZeDOOMz Рік тому +1

      its the urp, unity use 3 render mode. a material for urp doens't work on the other 2, and viceversa. idk how to make it work in urp atm

  • @dj_multiple_one
    @dj_multiple_one Рік тому

    is displacement shade suitable for mobile games?

  • @YoIsthatJuiceboxSupreme
    @YoIsthatJuiceboxSupreme 2 роки тому +1

    is there a way to go farther than 1 in displacement scale? I'm having trouble actually bringing out textures all the way

    • @scroll2993
      @scroll2993 Місяць тому

      A bit late, but if someone else has the same problem:
      You can change the max and min of all the sliders in the Shader. Go to Project Folder Assets > DX11_Tessellation > DX11_Tessellation_Free > Shaders and find the Tess_Standard (or whatever you're using), open it in an Editor and change the numbers in Range to what you need.

  • @ElDonitazz
    @ElDonitazz Рік тому

    is there any way to apply the vertex displacement to my other materials in the same object? I'm trying to achieve world bending along with other effects, but my other materials stay in place of the original vertex position :(

    • @hover_trug
      @hover_trug Рік тому

      you would have to use the same displacement map for each material you are trying to blend if you want to use vertex painting. Or combine multiple displacement maps with addition or multiplication

  • @da_drood-digitalart
    @da_drood-digitalart 5 місяців тому

    Upon clicking the tessellation shader my material goes full purple *_+... is it maybe cause i'm using Unity 2022.3? Do you know if it's possible to fix this?
    EDIT: ok, just by reading the comments i found out it might be due to urp and it seems like nobody knows how to make it work in urp...:/

  • @rabanaqueroman
    @rabanaqueroman 2 роки тому +1

    hola, lo intente en unity urp y el material se volvio rosa

  • @freezebanana1865
    @freezebanana1865 Рік тому

    May I ask a newbie question here? Is It worth using a displacement map on a low polygon model on unity? or is it the same as we use a high polygon model on unity? I'm not sure how much effect on performance when we using displacement map on unity nowday. ;-;

    • @kortvelyin12
      @kortvelyin12 Рік тому

      I just tested this, it doesn't change the triangle count, so low poly models with this are better. The FPS changes slightly, but you can check the stats window. I might do an indepth testing, but right now it seems this is really great form performance perspective!

  • @RedRocksies
    @RedRocksies 6 місяців тому +1

    Does not work in URP. If anyone knows how to make it work in URP, please reply.

  • @kevinzawarrior
    @kevinzawarrior 2 роки тому

    thanks!

    • @TheRealTimeEssentials
      @TheRealTimeEssentials  2 роки тому

      No problem!

    • @kevinzawarrior
      @kevinzawarrior 2 роки тому

      @@TheRealTimeEssentials Hey I have a question, I'm trying to make brick texture and when I apply the displacement its all just triangles and lines everywhere.
      But when I decrease the tilting it becomes more accurate and I noticed the displacement is just little triangles to make up shapes, is their anyway to increase these triangles "resolution". (as in more triangles to make more accurate shapes, bricks)
      Edit: I think the correct term is triangle size

  • @aprimic
    @aprimic Рік тому +2

    Does this work with URP?

  • @doanhnhan2118
    @doanhnhan2118 2 роки тому +4

    Thanks for usefull tutotial but it doesnt work on URP. After download Tessellation, only have 2 options in shader Tesselation: Pimped Distance and Tess_Standard_Specular. No Tess_Standard shader. And chose 1 of 2 first shaders, every thing is pink colour.

    • @Dyzinel
      @Dyzinel 2 роки тому

      I'm also using URP, but it shows 3 options here.
      Unfortunately, all of them are just pink.
      I have no idea how to get tessellation in URP.

  • @vam_moss
    @vam_moss Рік тому

    Very useful tutorial, thanks for the help!💯

  • @Xaandaa
    @Xaandaa 9 місяців тому +1

    i have urp so it does not work.

  • @LeGaLiZeDOOMz
    @LeGaLiZeDOOMz Рік тому +2

    isn't the urp the most utilized? why not explaining how to do it there?

  • @user-qm9em7fm1z
    @user-qm9em7fm1z 2 роки тому +1

    Cool video 👍Thanks a lot it is really an amazing feature (I saw it in “Enlisted “ recently ), like + subscribe from me. That would be wonderful if you will make a video about optimizing this(like script which lowers amount of triangles if camera is far enough from plane) coz if it is huge terrain that will be to much triangles to render.

    • @TheRealTimeEssentials
      @TheRealTimeEssentials  2 роки тому

      Interesting idea - we'll see!

    • @TristanMSmith
      @TristanMSmith 2 роки тому

      Perhaps using LOD's and attaching different versions of the material to those different versions of the asset in question would do the trick.

  • @TamikTamik-qb2ml
    @TamikTamik-qb2ml Рік тому

    This ita only vr can build!

  • @T3AMAnimation
    @T3AMAnimation Рік тому

    Where's the video on how to do it in HDRP?

  • @Alexander-mk4qf
    @Alexander-mk4qf Рік тому

    how to collide player foot with it?

  • @Alexander-mk4qf
    @Alexander-mk4qf Рік тому

    how to add collider to it

  • @hulusikuluk2366
    @hulusikuluk2366 2 роки тому +3

    how to do that in urp?