Stylized Grass with Wind Effect Shader Graph in Unity Engine - Step by Step Tutorial

  Рет қаралды 39,799

Binary Lunar

Binary Lunar

Күн бұрын

Пікірлер: 84
@BinaryLunar
@BinaryLunar 10 ай бұрын
🔥50% Sale on Unity Assets Store: assetstore.unity.com/?aid=1011lkafR 📝 Our new online multiplayer course: www.udemy.com/course/the-ultimate-2d-3d-shader-graph-vfx-unity-course/?referralCode=AA34C472F6CB6B86DE75 🌎 Let us know what you think about this video, also feel free to chat with us on our Discord server: discord.com/invite/b6bXKSV ❤ Support us on Patreon www.patreon.com/BinaryLunar and gain access to all our tutorial projects.
@coldfire6679
@coldfire6679 4 ай бұрын
The tutorial is awesome but you speed up the video too much, in some parts you change values so fast that I didn't even notice and had to go back over and over again to find out what I missed, besides that thank you ^^
@zacisyahu
@zacisyahu 7 ай бұрын
came for sharder graph tutorial. got a windows xp background tutorial
@ShowToaster
@ShowToaster 10 ай бұрын
This has to be one of the most detailed and best tutorials on grass at all. I have already the asset and I don't know if it's mentioned in the video (haven't seen it yet), but the only thing that would be nice to add is light support (at least it's not included with the asset) because this way you can use it in the night.
@BinaryLunar
@BinaryLunar 10 ай бұрын
Kind of you, we will consider your suggestion ^^
@mohammedelwardighi9426
@mohammedelwardighi9426 7 ай бұрын
😊❤ thanks for this amazing tutorial
@BinaryLunar
@BinaryLunar 7 ай бұрын
You are most welcome🙏
@Yukiixs
@Yukiixs 10 ай бұрын
Result seems awesome! Cant wait to follow the tutorial, tysm
@BinaryLunar
@BinaryLunar 10 ай бұрын
Thanks!
@xc5838
@xc5838 7 ай бұрын
If you are getting the error "Direction' not completely initialized" for the shadow part of the video, make sure you have "active targets" for Fragment node, under the Graph Inspector set to Universal not Built-in. In fact, it is probably safe to make sure all your node's active target is set to Universal.
@uriyhills
@uriyhills 16 күн бұрын
true legend
@NorthstriderGaming
@NorthstriderGaming 8 ай бұрын
So is there actually a better way approach the texture color sampling of terrains? It feels very hacky and quite inperformant to have a 2nd camera render the terrain and having to mess around with shadows. Unreal has a virtual texture streaming approach for this, which doesn't seam to be possible in unity yet so how do we do this?
@ZK-ff2ru
@ZK-ff2ru 10 ай бұрын
Subbed ♥ Youre my fav unity shader graph youtuber now youve helped me alot
@BinaryLunar
@BinaryLunar 10 ай бұрын
My pleasure to help
@hagen5129
@hagen5129 9 ай бұрын
Thank you so much this made my day
@BinaryLunar
@BinaryLunar 9 ай бұрын
You are most welcome
@mateigiurgiu2586
@mateigiurgiu2586 10 ай бұрын
This looks amazing! Really comprehensive tutorial! Could you share how did you make the trees also?
@BinaryLunar
@BinaryLunar 10 ай бұрын
The trees are paid asset, link in description. But might create tutorial for that.
@JoshSauder
@JoshSauder 7 ай бұрын
This is a great tutorial! I am a bit confused on the choice of using Emission instead of Base Color as your color output. This choice prevents you from receiving shadows automatically, and makes the grass "glow" in dark scenarios. Is there a reason you chose Emission? I am really curious.
@ManyMagix
@ManyMagix 9 ай бұрын
Really great tutorial!
@BinaryLunar
@BinaryLunar 9 ай бұрын
Thanks!
@ManyMagix
@ManyMagix 8 ай бұрын
@@BinaryLunar I found that using the LOD2 Grass Mesh (16 triangles instead of 300) really improved performance and allowed me to fill out my scene. I made the blades super thick by reducing occlusion and it created a nice toon-like field - I opted out of the dynamic wind waves but who knows may use that later. Your tutorial really helped - 100% success.
@BinaryLunar
@BinaryLunar 8 ай бұрын
Very nice, thanks for sharing this info 👍
@KnightWhoSaysNi
@KnightWhoSaysNi 10 ай бұрын
This is really cool, thank you for sharing :)
@BinaryLunar
@BinaryLunar 10 ай бұрын
Welcome 🙏
@SorceressGamelab
@SorceressGamelab 10 ай бұрын
This must be one of your best videos yet! I was wondering can this be applied to 2D? I used your other grass shader video for my top down game and it worked fine. Can i use this for 2D sprites as well?
@BinaryLunar
@BinaryLunar 10 ай бұрын
Thanks! This designed for 3d game with 3d detailed mesh grass
@SorceressGamelab
@SorceressGamelab 10 ай бұрын
@@BinaryLunar okay thanks for your reply!
@nightkot4917
@nightkot4917 7 ай бұрын
It would be interesting to probably shift the Wind Texture depending on the Wind Zone component on the Stage. Or simply write the value from the Wind on the Stage into the shader.
@tahuangkasa
@tahuangkasa 10 ай бұрын
Amazing tutorial!! can't wait to try it! post more tutorial!
@BinaryLunar
@BinaryLunar 10 ай бұрын
Kind of you!
@LunaLanfranco
@LunaLanfranco 6 ай бұрын
How can I set the render texture in two different terrains in two different scenes at the same time? Anyway, thank you for the tutorial!
@rouletteformillionaires1646
@rouletteformillionaires1646 4 ай бұрын
I express my gratitude to you. Through your video apps get a rich interface. Can you tell me how to make a fisheye or magnifying glass shader - a circular distortion moves across the picture and another option - on the camera across the entire screen. You are amazing and very smart!
@milankiele9151
@milankiele9151 7 ай бұрын
Really good, but grass interacting is missing. Other then that it is perfect :)
@GermanDev_blend
@GermanDev_blend 8 ай бұрын
Could you make a tutorial on how to make stylized trees with the modeling part because there arent so many tutorial for that? btw amazing tutortial
@NatadTech
@NatadTech 10 ай бұрын
Thanks Bro
@BinaryLunar
@BinaryLunar 10 ай бұрын
You are most welcome
@speedistic899
@speedistic899 8 ай бұрын
Amazing!
@rishabhchaudhary7303
@rishabhchaudhary7303 20 күн бұрын
Shadergraph material is coming out to be pink. Can anyone suggest me what to do
@LuberFiguera
@LuberFiguera 5 ай бұрын
Hello, can you make the size of the land larger than the 50 meters in the video, for example? I ask why when I increase the size the colors are not projected well and of course I also change the colors in the texture of the terrain
@jinx_cpt5497
@jinx_cpt5497 9 ай бұрын
great tutorial bro🔥, but for some reason i cant add the text file by the source in the custom function node. Idk whats the problem because i file ends with txt
@BinaryLunar
@BinaryLunar 9 ай бұрын
You should change the extension from .txt to .hlsl
@nghiaang2033
@nghiaang2033 Ай бұрын
35:07 Hi Sir. When I'm down HeightBlend but the color run in grass did not appear. I don't know why althought I made same the way you did. Thanks Sir
@Konradulations
@Konradulations 6 ай бұрын
how is this handled in the backend? is each blade of gras (i think its 5 in the texture) an individual object?
@mateuszuliani7168
@mateuszuliani7168 8 ай бұрын
How would you go about making the grass prefabs into billboards? I managed to create a quad and apply the grass .psd to it to use as a prefab. Also, I added nodes to the shader to make the prefab always face the camera. But that`s where my problems start. I used the transform from the billboard group where before there were object positions, which already made it work with the wind and sway, but the colors are all wrong... I just want the grass to have the exactly same color as the ground beneath it =/
@jackrj3464
@jackrj3464 28 күн бұрын
I guess there are a problem in shader graphs: when we get terrain texture and aplly to the grass color, it is aligned by the viewing position and not by the world position. I know we need select "World" in the position node, but it still wrong. can someone help me?
@KalponicGames
@KalponicGames 3 ай бұрын
What is the requiement for making this shader work for tree leaves?
@hugodanielvalladoliddaumas7073
@hugodanielvalladoliddaumas7073 9 ай бұрын
I havent watched the video, this looks awesome, I want to know, can I generate this on a procedural map while ingame?
@nihal_347
@nihal_347 6 ай бұрын
bro making this grass by watching your video and really really liked it I think it's the best. now can you tell me if I want to add this grass to my other project do I have to do these steps again. what is the process of saving this and using it on other projects by just adding a prefab or asset? please answer i need to know this...
@thijmendebrouwer3896
@thijmendebrouwer3896 8 ай бұрын
where to find the custom shadow code, seems to be behind a patreon paywall no?
@SPIKEVFX
@SPIKEVFX 9 ай бұрын
Is it possbile for me to use this for Unity 2020.3.40f1? I've purchased one of the main example to export it as package, it doesn't seem to be working :(
@2212morfeo
@2212morfeo 7 ай бұрын
Do you have any discount codes for the unity shaders course? Thanks!
@jasonwilliams8730
@jasonwilliams8730 10 ай бұрын
Amazing! Would love to see this done in Godot as well :)
@BinaryLunar
@BinaryLunar 10 ай бұрын
I still didn't give Godot a shot but maybe this year I try
@TarikDurmaz
@TarikDurmaz 8 ай бұрын
It looks so good. Thank you as always. I plan to try this method however my project is on version 2022.3.0f1. Would it create any issues in terms of version incompatibility?
@LeeSandis
@LeeSandis 7 ай бұрын
I can't find the exakt switch boolean node used in the shadow part.
@frankblau3485
@frankblau3485 7 ай бұрын
@@LeeSandis You dont choose boolean directly, when you declare a variable go over Keyword -> Boolean. Then it works
@Bfun-rv9ze
@Bfun-rv9ze 9 ай бұрын
I am trying to use this in HDRP and first of all, connecting the colors of the grass into the emission does not seem to work so I plugged that into the base color. Second, making the grass change color according to the undergrouund/biome does also not seem to work. For this I have not found a fix yet.
@RgPoly
@RgPoly 8 ай бұрын
apart from what you did, I connected lerp to the emmision node and connected that to emmision. Created a float for intensity and weight, setting them appropriately I got shadows without using a custom function
@DavrilSenpai
@DavrilSenpai Ай бұрын
Hello, for future reference i managed to get the texture for the terrain (in HDRP of course), by swapping the "world" space coordinates for "absolute world" in the position node, also had to adjust the "terrain offset" a bit for the textures to match. Also found out that swapping the "NearColor" for the terrain color looks prettier in my setup. Good luck!
@tboxfinn
@tboxfinn 8 ай бұрын
is this possible on a procedural terrain?
@xavisanchezgimenez7517
@xavisanchezgimenez7517 10 ай бұрын
Hi, it is a tutorial from this in udemy?
@machofriz857
@machofriz857 3 ай бұрын
I wonder if this can be done with a non-HDRP project?
@OkinDev
@OkinDev 2 ай бұрын
that was done in a URP project, not on a HDRP.
@aeroniix1489
@aeroniix1489 4 ай бұрын
Is it normal that 6.2M Verts after painting the grass?
@streuselu9474
@streuselu9474 5 ай бұрын
does this also work for hdrp?
@rayleigh8536
@rayleigh8536 8 ай бұрын
how would this work in HDRP?
@Random_Variableee
@Random_Variableee 9 ай бұрын
How do we add gpu instancing in it or compute for much better performance as i am getting barely any fps with the terrain grass
@BinaryLunar
@BinaryLunar 9 ай бұрын
At the end of the video, there is how to enable the gpu instancing.
@Random_Variableee
@Random_Variableee 9 ай бұрын
nah man that does'nt help ik about it@@BinaryLunar
@marianmarian8882
@marianmarian8882 9 ай бұрын
for gpu instancing to work you must disable dynamic batching and srp batcher in pipeline, if you have srp batcher on and your shader is compatible with it, it will automatically use the srp barcher you can see that in debug, also you can see which batcher is good for you in unity documentation
@Meow-or-Never
@Meow-or-Never 9 ай бұрын
Does this work for HDRP?
@thunderwolf1136
@thunderwolf1136 6 ай бұрын
when I try to do the wind portion, my grass just goes all over the place - it spawns way off the terrain
@JimmyHubbell
@JimmyHubbell Ай бұрын
Not sure if you still need this, but I had the same issue. Change the Grass Sway group’s position node from ‘world’ to ‘object’
@marianmarian8882
@marianmarian8882 9 ай бұрын
using another camera to render terrain is not a performant way
@BinaryLunar
@BinaryLunar 9 ай бұрын
Yes, you can save the texture to avoid rendering realtime.
@marianmarian8882
@marianmarian8882 9 ай бұрын
@@BinaryLunar uh i didnt know that
@nihal_347
@nihal_347 6 ай бұрын
@@BinaryLunar how can i do so?
@achibashinory9224
@achibashinory9224 8 ай бұрын
Please help! When I import Unity GitHub code, it shows a bunch of Error say: "Function 'TransformWorldToShadowCoord(float3)' is not declared." and many more.... (;′⌒`). Also we would love to see if you make a interactive grass tutorial video ( •̀ ω •́ )
@skybro1473
@skybro1473 8 ай бұрын
Found a solution?
@achibashinory9224
@achibashinory9224 6 ай бұрын
It works perfectly fine even with those error...(°~°)
@vaqquixx8620
@vaqquixx8620 10 ай бұрын
tomato paste
@hldfgjsjbd
@hldfgjsjbd 9 ай бұрын
That amount of grass shouldn’t really be placed as objects, but generated with code as vertices with properties
@rayleigh8536
@rayleigh8536 7 ай бұрын
how would that work with the other foliage? is it the same process?
How Do Games Render So Much Grass?
15:52
Acerola
Рет қаралды 335 М.
Adding This One Thing Made my Game Look 327% Better
6:11
OverPhil Dev
Рет қаралды 92 М.
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
What I Did To Optimize My Game's Grass
8:13
Acerola
Рет қаралды 136 М.
Unlocking The Power Of Unity's Scriptable Render Pipeline
21:05
Game Dev Guide
Рет қаралды 222 М.
GRASS SWAY in Unity - SHADER GRAPH
16:56
Brackeys
Рет қаралды 734 М.
Unity Shader Graph - Stylized Trails Tutorial
17:32
Gabriel Aguiar Prod.
Рет қаралды 228 М.
Shader graph в Unity! Проще чем кажется! Шейдер граф
12:48
Яковлев Илья - IT и игры
Рет қаралды 32 М.
Webfishing Modding - Custom Map Editing
38:17
Haigen
Рет қаралды 290