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 - Наука та технологія
Hi everyone! Let me know if you have any questions in the comments below! :)
And how to read this tessellated geometry for any kind of animation?
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
how to do that in urp?
This actually helped me understand what the purpose of displacement maps is, thanks
You're my hero of the day for showing me this shader! :D
Thank you, that was i searched for
Thanks for the tutorial, it helps me a lot!
Glad it helped!
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
Legend -thank you!
Hey! Great Tutorial, really appreciate it!
Thanks a lot for watching!
Thank you!!!
thank you!!
Does anybody know a way to add tesselation (or at least specular maps.. 😫) to Unity terrain textures? That would be awesome!!
when trying to use this feature the materials created based on tessellation turn pink, and i don't know how to fix this
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
is displacement shade suitable for mobile games?
is there a way to go farther than 1 in displacement scale? I'm having trouble actually bringing out textures all the way
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.
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 :(
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
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...:/
hola, lo intente en unity urp y el material se volvio rosa
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. ;-;
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!
Does not work in URP. If anyone knows how to make it work in URP, please reply.
thanks!
No problem!
@@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
Does this work with URP?
help please
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.
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.
Very useful tutorial, thanks for the help!💯
i have urp so it does not work.
isn't the urp the most utilized? why not explaining how to do it there?
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.
Interesting idea - we'll see!
Perhaps using LOD's and attaching different versions of the material to those different versions of the asset in question would do the trick.
This ita only vr can build!
Where's the video on how to do it in HDRP?
how to collide player foot with it?
how to add collider to it
how to do that in urp?