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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024

ความคิดเห็น • 78

  • @BinaryLunar
    @BinaryLunar  8 หลายเดือนก่อน

    🔥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 หลายเดือนก่อน

      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 ^^

  • @garadosix25
    @garadosix25 8 หลายเดือนก่อน +12

    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  8 หลายเดือนก่อน +1

      Kind of you, we will consider your suggestion ^^

  • @zacisyahu
    @zacisyahu 5 หลายเดือนก่อน +14

    came for sharder graph tutorial. got a windows xp background tutorial

  • @Yukiixs
    @Yukiixs 8 หลายเดือนก่อน +3

    Result seems awesome! Cant wait to follow the tutorial, tysm

  • @xc5838
    @xc5838 4 หลายเดือนก่อน +1

    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.

  • @mohammedelwardighi9426
    @mohammedelwardighi9426 5 หลายเดือนก่อน +2

    😊❤ thanks for this amazing tutorial

    • @BinaryLunar
      @BinaryLunar  5 หลายเดือนก่อน

      You are most welcome🙏

  • @ZK-ff2ru
    @ZK-ff2ru 8 หลายเดือนก่อน +4

    Subbed ♥ Youre my fav unity shader graph youtuber now youve helped me alot

    • @BinaryLunar
      @BinaryLunar  8 หลายเดือนก่อน

      My pleasure to help

  • @mateigiurgiu2586
    @mateigiurgiu2586 8 หลายเดือนก่อน +2

    This looks amazing! Really comprehensive tutorial! Could you share how did you make the trees also?

    • @BinaryLunar
      @BinaryLunar  8 หลายเดือนก่อน

      The trees are paid asset, link in description.
      But might create tutorial for that.

  • @hagen5129
    @hagen5129 7 หลายเดือนก่อน +1

    Thank you so much this made my day

    • @BinaryLunar
      @BinaryLunar  7 หลายเดือนก่อน

      You are most welcome

  • @milankiele9151
    @milankiele9151 4 หลายเดือนก่อน +2

    Really good, but grass interacting is missing. Other then that it is perfect :)

  • @KnightWhoSaysNi
    @KnightWhoSaysNi 8 หลายเดือนก่อน +1

    This is really cool, thank you for sharing :)

    • @BinaryLunar
      @BinaryLunar  8 หลายเดือนก่อน

      Welcome 🙏

  • @rouletteformillionaires1646
    @rouletteformillionaires1646 2 หลายเดือนก่อน

    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!

  • @nightkot4917
    @nightkot4917 4 หลายเดือนก่อน

    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.

  • @SorceressGamelab
    @SorceressGamelab 8 หลายเดือนก่อน +2

    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  8 หลายเดือนก่อน +1

      Thanks! This designed for 3d game with 3d detailed mesh grass

    • @SorceressGamelab
      @SorceressGamelab 8 หลายเดือนก่อน +1

      @@BinaryLunar okay thanks for your reply!

  • @ManyMagix
    @ManyMagix 7 หลายเดือนก่อน +1

    Really great tutorial!

    • @BinaryLunar
      @BinaryLunar  7 หลายเดือนก่อน

      Thanks!

    • @ManyMagix
      @ManyMagix 6 หลายเดือนก่อน +1

      @@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  6 หลายเดือนก่อน

      Very nice, thanks for sharing this info 👍

  • @JoshSauder
    @JoshSauder 4 หลายเดือนก่อน +2

    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.

  • @NatadTech
    @NatadTech 8 หลายเดือนก่อน +2

    Thanks Bro

    • @BinaryLunar
      @BinaryLunar  8 หลายเดือนก่อน +1

      You are most welcome

  • @tahuangkasa
    @tahuangkasa 8 หลายเดือนก่อน +2

    Amazing tutorial!! can't wait to try it! post more tutorial!

    • @BinaryLunar
      @BinaryLunar  8 หลายเดือนก่อน

      Kind of you!

  • @NorthstriderGaming
    @NorthstriderGaming 6 หลายเดือนก่อน +2

    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?

  • @LunaLanfranco
    @LunaLanfranco 4 หลายเดือนก่อน +1

    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!

  • @GermanDev_blend
    @GermanDev_blend 6 หลายเดือนก่อน

    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

  • @speedistic899
    @speedistic899 6 หลายเดือนก่อน

    Amazing!

  • @KalponicGames
    @KalponicGames หลายเดือนก่อน

    What is the requiement for making this shader work for tree leaves?

  • @LuberFiguera
    @LuberFiguera 3 หลายเดือนก่อน

    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

  • @jasonwilliams8730
    @jasonwilliams8730 8 หลายเดือนก่อน +1

    Amazing! Would love to see this done in Godot as well :)

    • @BinaryLunar
      @BinaryLunar  8 หลายเดือนก่อน +1

      I still didn't give Godot a shot but maybe this year I try

  • @nihal_347
    @nihal_347 4 หลายเดือนก่อน

    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...

  • @jinx_cpt5497
    @jinx_cpt5497 7 หลายเดือนก่อน +1

    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  7 หลายเดือนก่อน +1

      You should change the extension from .txt to .hlsl

  • @aeroniix1489
    @aeroniix1489 2 หลายเดือนก่อน

    Is it normal that 6.2M Verts after painting the grass?

  • @hugodanielvalladoliddaumas7073
    @hugodanielvalladoliddaumas7073 6 หลายเดือนก่อน

    I havent watched the video, this looks awesome, I want to know, can I generate this on a procedural map while ingame?

  • @Konradulations
    @Konradulations 3 หลายเดือนก่อน

    how is this handled in the backend? is each blade of gras (i think its 5 in the texture) an individual object?

  • @thunderwolf1136
    @thunderwolf1136 4 หลายเดือนก่อน

    when I try to do the wind portion, my grass just goes all over the place - it spawns way off the terrain

  • @mateuszuliani7168
    @mateuszuliani7168 6 หลายเดือนก่อน

    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 =/

  • @thijmendebrouwer3896
    @thijmendebrouwer3896 6 หลายเดือนก่อน

    where to find the custom shadow code, seems to be behind a patreon paywall no?

  • @2212morfeo
    @2212morfeo 5 หลายเดือนก่อน

    Do you have any discount codes for the unity shaders course? Thanks!

  • @SPIKEVFX
    @SPIKEVFX 6 หลายเดือนก่อน

    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 :(

  • @Bfun-rv9ze
    @Bfun-rv9ze 6 หลายเดือนก่อน

    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 6 หลายเดือนก่อน

      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

  • @machofriz857
    @machofriz857 29 วันที่ผ่านมา

    I wonder if this can be done with a non-HDRP project?

    • @OkinDev
      @OkinDev 15 วันที่ผ่านมา

      that was done in a URP project, not on a HDRP.

  • @TarikDurmaz
    @TarikDurmaz 6 หลายเดือนก่อน

    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 5 หลายเดือนก่อน +1

      I can't find the exakt switch boolean node used in the shadow part.

    • @frankblau3485
      @frankblau3485 5 หลายเดือนก่อน

      @@LeeSandis You dont choose boolean directly, when you declare a variable go over Keyword -> Boolean. Then it works

  • @tboxfinn
    @tboxfinn 5 หลายเดือนก่อน

    is this possible on a procedural terrain?

  • @streuselu9474
    @streuselu9474 3 หลายเดือนก่อน

    does this also work for hdrp?

  • @rayleigh8536
    @rayleigh8536 5 หลายเดือนก่อน

    how would this work in HDRP?

  • @xavisanchezgimenez7517
    @xavisanchezgimenez7517 7 หลายเดือนก่อน

    Hi, it is a tutorial from this in udemy?

  • @division137
    @division137 6 หลายเดือนก่อน

    Does this work for HDRP?

  • @Random_Variableee
    @Random_Variableee 7 หลายเดือนก่อน

    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  7 หลายเดือนก่อน

      At the end of the video, there is how to enable the gpu instancing.

    • @Random_Variableee
      @Random_Variableee 7 หลายเดือนก่อน

      nah man that does'nt help ik about it@@BinaryLunar

    • @marianmarian8882
      @marianmarian8882 7 หลายเดือนก่อน

      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

  • @marianmarian8882
    @marianmarian8882 7 หลายเดือนก่อน +2

    using another camera to render terrain is not a performant way

    • @BinaryLunar
      @BinaryLunar  7 หลายเดือนก่อน +1

      Yes, you can save the texture to avoid rendering realtime.

    • @marianmarian8882
      @marianmarian8882 7 หลายเดือนก่อน +1

      @@BinaryLunar uh i didnt know that

    • @nihal_347
      @nihal_347 4 หลายเดือนก่อน +1

      @@BinaryLunar how can i do so?

  • @achibashinory9224
    @achibashinory9224 6 หลายเดือนก่อน

    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 5 หลายเดือนก่อน

      Found a solution?

    • @achibashinory9224
      @achibashinory9224 4 หลายเดือนก่อน

      It works perfectly fine even with those error...(°~°)

  • @vaqquixx8620
    @vaqquixx8620 8 หลายเดือนก่อน +1

    tomato paste

  • @hldfgjsjbd
    @hldfgjsjbd 7 หลายเดือนก่อน

    That amount of grass shouldn’t really be placed as objects, but generated with code as vertices with properties

    • @rayleigh8536
      @rayleigh8536 5 หลายเดือนก่อน

      how would that work with the other foliage? is it the same process?