How to Make Leaves Animation in Wind by using ShaderGraph in Unity URP

  Рет қаралды 49,608

LoBeyJon Game Dev

LoBeyJon Game Dev

Күн бұрын

Пікірлер: 73
@muhammadawaiskhan4068
@muhammadawaiskhan4068 9 ай бұрын
This was really informative and one of the best wind shaders i've found thus far
@burakm8685
@burakm8685 Ай бұрын
Great tutorial. Works really well with minecraft style voxel trees
@swayuuum
@swayuuum 3 жыл бұрын
I stumbled upon this a bit late. But if you're reading this, you rock man.
@austinwilliamsshow
@austinwilliamsshow Жыл бұрын
This was the best wind shader I have found and WAY easier than others to figure out. Thank you so much!
@LynJuice
@LynJuice 3 жыл бұрын
Honestly underrated Channel
@kuraihikari5147
@kuraihikari5147 Жыл бұрын
I just wanna say, you are so talented and amazing, thank you so much for the great tutorial
@pratyushbarikdev
@pratyushbarikdev 3 жыл бұрын
This was actually pretty awesome. I was searching for something like this with vertex colors to control different parts of the tree. I think I can combine your technique with it.
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
That's cool man!
@Sober-MindedYT
@Sober-MindedYT 3 жыл бұрын
@@lobeyjongamedev676 waiting for the tutorial about shader with smooth dithering transitions between LODs 🤗
@stylie473joker5
@stylie473joker5 2 жыл бұрын
Best wind shader i've found so far simple understandable and the result is amazing thank you so much
@marcosrodriguez7858
@marcosrodriguez7858 3 жыл бұрын
U R AWESOME! I've been at this all day, thank you for the help!
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Thank you! My pleasure :)
@Stellarsapiens
@Stellarsapiens 2 жыл бұрын
WOOWWWWWWWWWWW thank you so so so much. I love your teaching style, so easy to follow, perfect!❤️
@stylie473joker5
@stylie473joker5 2 жыл бұрын
True
@Palerider1011
@Palerider1011 3 жыл бұрын
Fantastic! Thanks for putting this together for us.
@reetah0
@reetah0 3 жыл бұрын
amazing man, keep up the good work, you are really good. thank you so much for this
@alpha3836
@alpha3836 2 жыл бұрын
Amazing shader
@sillyninja65
@sillyninja65 2 жыл бұрын
for the life on me i cant stay focused the second i see shader graphs
@OzzO_Official
@OzzO_Official 11 ай бұрын
Great tutorial, thanks!
@reputin8428
@reputin8428 2 жыл бұрын
This is so cool, very informative video.
@simon.in.motion
@simon.in.motion 8 ай бұрын
Thanks a lot for the tutorial !
@samigo2000
@samigo2000 3 жыл бұрын
Amazing!! Thanks for this tutorials!
@manfredinigamer
@manfredinigamer Жыл бұрын
PRO TIP: use Object instead of World in the position nodes. This fixes a weird bug where if your moving the camera the wind seems to speed up. I'm not sure what causes this I only know that changing World to Object helped, total trial and error.
@ciixo8510
@ciixo8510 3 жыл бұрын
i implemented your technic in HDRP and somehow, the wind speed is dependent on The Camera Speed, can you help me with this plz!
@ciixo8510
@ciixo8510 3 жыл бұрын
for anyone who had the same problem, just change every "world" option on every node, including transform node to "Absolute World"!
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Sorry for my delay reply. I'm really happy you have solved this issue!!
@roydellano5510
@roydellano5510 3 жыл бұрын
My shader is very slow, my fps was almost cut in half, any tips to optimize it?
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Usually decrease vertices count or decrease draw call. I need profiler or frame debugger infos to know what happened in your scene.
@timothypattison1806
@timothypattison1806 3 жыл бұрын
I think I may be having the same problem. Did you find a fix for this? After completing the shader, it looked great in the preview window of the graph but when I went back to the scene it was SUPER slow like stop animation. I tried running it in game mode but ended up with the same results. I checked the number of vertices in my model and I have 14,908 vertices in LOD 0, 7,648 vertices in LOD1, and 1,08 vertices in LOD2. I'm not sure what would be considered an absurd amount of vertices so I guess this could be the problem, although I thought a graphics card like an RTX 2080 ti could handle millions without any issues.
@timothypattison1806
@timothypattison1806 3 жыл бұрын
So I noticed that after creating an Exe and run it the shader works fluidly with no issues. Have you tried making an executable and running it to see if it works for you as well this way? I'm still stuck as to why it is running so poorly in the Scene window of the Unity editor. If you find or have found a fix please let me know as I am currently stuck with this as well!
@timothypattison1806
@timothypattison1806 3 жыл бұрын
LoBeyJon helped me out on this issue. If you look on your toolbar below the Scene tab you'll see an audio icon. Right next to it (in Unity 2020, I'm not sure if this is different on a different version) there is a skybox toggle, fog, and various other effects button along with a drop down arrow. Click that arrow and make sure you have always refresh turned on. This fixed the issue for me where it wasn't looking correct in the editor. I'm not sure why this isn't on by default.
@styrwirldgaming2029
@styrwirldgaming2029 3 жыл бұрын
@@timothypattison1806 This fixed my issue!
@aribahmed2550
@aribahmed2550 3 жыл бұрын
Hey, umm, the PBR Master shader graph isn't supported in the newest version of urp anymore, do you have any solutions of making this in the shader graphs that urp supports?
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
There should has a blank shader graph could be used.
@thatonekid702
@thatonekid702 2 жыл бұрын
it's in Shader Graph -> URP -> Lit Shader Graph.
@ПавелАлексеев-р7и
@ПавелАлексеев-р7и 2 жыл бұрын
Amazing and very usefull video, thanks for it!!
@user-em9su3dd9y
@user-em9su3dd9y 3 жыл бұрын
Very cool, thanks.
@mromeo72
@mromeo72 3 жыл бұрын
Great tutorial, but cant get it working with 2020. There's no more PBR and the lit shader doesn't have an alpha channel. Any help?
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Hi, I tried in Unity 2020.2.7. Create a Lit Shader, in Shader Graph Editor, at the right up corner, there has a Graph Inspector, choose "Graph Settings" > check "AlphaClip". Then you will see Alpha and Alpha Clip Threshold in Fragment node.
@mromeo72
@mromeo72 3 жыл бұрын
@@lobeyjongamedev676 Thanks so much! Love the tutorials. Exactly what I was looking for while working on my game. Just finished the 1st tree tutorial 2 days ago and thought wouldn't it be nice to get this great looking tree to have a wind effect. I'd say "Stop reading my mind!"" but by all means please continue!
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
@@mromeo72 I'm really happy these videos could help you!
@zairepernia7307
@zairepernia7307 3 жыл бұрын
amazing tutorial thanks a lot
@dicelite
@dicelite 5 ай бұрын
in my scene view it looks great, but when i switch to game view the alpha clipping is not working?
@B4NTO
@B4NTO 7 ай бұрын
Really nice tutoria, however how would i take scale into account. lets say i want to scale them inside of Unity. Because going from 1.0 scale to 4 makes the leaves almost not move with high winds. can i incorporate depending on the scale
@lsd-di1em
@lsd-di1em 6 ай бұрын
Bro pbr graph is not showing in the shader menu. who did you do it?
@timothypattison1806
@timothypattison1806 3 жыл бұрын
Follow Up: to previous post - I tried to resolve the slow shader issue in the Unity editor but was unable to find a solution that worked. I tried changing the material and used a simple 2d leaf material made in Photoshop instead of using a material from texture haven but this didn't change anything. I did however build an EXE and run it just to see what the results were and it runs beautifully in the executable! Does Unity just utilize the CPU when running the shader in the scene window? There must be some sort of configuration I'm missing that would cause this not to function properly in the scene window but works fluidly after creating an executable file. If anyone has any suggestions on this I would greatly appreciate it as I am currently stuck.
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Hi there! If only the leaf material animation doesn't run smooth in Unity Editor Scene Window but run normal in Unity Play mode. Maybe you should have a look at whether you checked "Always Refresh" in the drop down list right to the audio button on the nav tool bar.
@timothypattison1806
@timothypattison1806 3 жыл бұрын
@@lobeyjongamedev676 That's all it was!!! I didn't have much time today to look around so I haven't looked up exactly what this does but you are a lifesaver! Thank-You so much for this help! Keep rocking these tutorials, they are fantastic! Oh, and also you stated that your English wasn't so good, but I think you are doing a great job! Thanks again for these tutorials.
@lodatarin3079
@lodatarin3079 2 жыл бұрын
Thank you so much for this! this help me so much. btw, It's look like the win direction not work.
@lefrog3851
@lefrog3851 3 жыл бұрын
Is this game friendly?can I use many of these in a game scene?
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Of course you can with right LOD settings.
@SerGixoo
@SerGixoo 3 жыл бұрын
First of all, many thanks for sharing with us this 10/10 tutorial 🙌 I was wondering... using a shader to make wind anim its actually better in terms of performance than configuring the tree to use a wind zone?
@tejasyallatti
@tejasyallatti Жыл бұрын
I want to implement this shader in my university assignment, but I do not know how to use blender for the tree model. is there any way i can download the tree model?
@YuriNoirProductions
@YuriNoirProductions 11 ай бұрын
Hey Man. i know i'm late to the party...but i did this in a newer unity version it still works but i noticed that the leaves receive way smoother shadows in your version what exactly does cause that? any idea?
@Sober-MindedYT
@Sober-MindedYT 3 жыл бұрын
How do you get so smooth shadows? my leaves cast shadow on themselves so it looks like flikering garbage.
@zukakenchuashvili591
@zukakenchuashvili591 3 жыл бұрын
Great tutorials! Love your channel. I would like to know why my scene has performance issues when i get close to the tree. From 60 it falls down to 15 fps when im really close to it. I remove the transperent leaf material and everything is fine. Is it that my PC is not strong enough or is there something i can do to improve performance when using this transperent leaf material? :(
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
Hmmm, I think alpha test shouldn't cause your scene fall down from 60fps to 15fps. Did you use profiler to check what happened?
@jaspertucker4263
@jaspertucker4263 3 жыл бұрын
@@lobeyjongamedev676 Sorry this is much later than the previous comment, but I'm having the same issue. If I turn alpha clipping off in the shader graph, my frame rate will keep between 70 and 90. If I turn it back on (and therefore use the transparent texture), then the frame rate will drop as low as 10 when getting close to trees.
@elric7371
@elric7371 3 жыл бұрын
Good content.
@AntiCringeGames
@AntiCringeGames Жыл бұрын
Superb
@timothypattison1806
@timothypattison1806 3 жыл бұрын
I followed through this tutorial along with the previous tutorial leading up to this. In the preview window the leaf movement is fluid but when I go back to the scene to see the animation in action it is really slow like stop animation. Does anyone know what would cause this? I went to Window > Rendering > Lighting to make sure it wasn't something to do with the lighting being auto generated but that is turned off. I'm sure it's not my PC specs as I just built a new PC with the following specifications: Intel I9-11900k CPU, ROG Maxiumus Hero XIII Z590 motherboard, 64 GB of DDR4-4266 RAM, RTX 2080ti graphics card, and I have the software installed on a Samsung 970 EVO Plus M.2 drive. I checked the number of vertices in my model and I have 14,908 vertices in LOD 0, 7,648 vertices in LOD1, and 1,08 vertices in LOD2. I'm not sure what would be an absurd amount of vertices for the shader graph to handle so I don't know if this is the issue I'm having or if it is some sort of setting that I need to change within Unity. I also took a look at the computers resources and there isn't any funky usage to speak of. only utilizing 5% CPU, 24% RAM with various windows open on 3 separate monitors, no hard drive usage. Any help would be much appreciated!
@haachamachama7
@haachamachama7 2 жыл бұрын
This is probably too late, but I'll write this for anyone who finds this... i imagine you need to turn on "always refresh". On the top right of the scene view there's the weird icon that looks like 2 squares with a + above it. In game it should look normal either way, but unity culls shader animations in the scene window to prevent lag.
@Vitor7Goncalves
@Vitor7Goncalves 9 ай бұрын
Amazing
@mohamedabdellahi4741
@mohamedabdellahi4741 3 жыл бұрын
This type of trees can’t be scattered with terrain brush you have to drag and drop them in to the scene
@ciixo8510
@ciixo8510 3 жыл бұрын
i've used this shader for my HDRP Terrain Trees And It Works Perfectly
@juanmanuelperezrodriguez959
@juanmanuelperezrodriguez959 Жыл бұрын
Is this valid for 2d?
@SingleSapling
@SingleSapling 3 жыл бұрын
Daaaaaaamnnnn dudeeeee, such a good tutorial!!!!!
@lobeyjongamedev676
@lobeyjongamedev676 3 жыл бұрын
My pleasure!
@merogames3444
@merogames3444 2 жыл бұрын
Global volume will not work and wont change anything
@陈雅新
@陈雅新 Жыл бұрын
非常nice
@MrRayhonda
@MrRayhonda 2 жыл бұрын
Can you do this tutorial again but up to date for unity version 2021.3.1f1? They are so inconsistent it's not even funny.... I'm so sick of Unity at this point.
Recreate Game Scene in Genshin Impact by using Unity URP Part.1
3:19
LoBeyJon Game Dev
Рет қаралды 25 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
GRASS SWAY in Unity - SHADER GRAPH
16:56
Brackeys
Рет қаралды 736 М.
Subsurface Scattering for Foliage, in Unity (WITHOUT RAYTRACING!)
5:33
Making Zelda: Breath of the Wild Stylised Grass in Unity URP
17:52
Daniel Ilett
Рет қаралды 57 М.
Simulating Wind in URP (Shader Graph Tutorial)
6:59
Unity
Рет қаралды 79 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Unity | I made a better Interactive Grass Shader + Tool
15:02
MinionsArt
Рет қаралды 63 М.
How to make a stylized tree in Blender!
13:28
Akishaqs'
Рет қаралды 98 М.
Making a Water Shader in Unity with URP! (Tutorial)
9:18
Unity
Рет қаралды 459 М.
Wait Till The End pt.2 #shorts #minecraft
1:09
Smartiel ENG
Рет қаралды 23 МЛН