Unity | I made an even better Interactive Grass Shader + Tool

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии • 236

  • @MinionsArt
    @MinionsArt  Год назад +33

    Hey all, just an extra note: If you get errors about BurstCompile, the generate functions use Burst Jobs, so you need to go to the Package Manager and install Burst if it's not installed already!

    • @AliceEverglade
      @AliceEverglade Год назад

      I'd love a guide on the cutting and burning :D I've been trying to do what you did but don't really understand any of it xD
      I'm in love with this tool though

    • @Garyson-cm8xk
      @Garyson-cm8xk 8 месяцев назад

      how do you add color

  • @AlexBlackfrost
    @AlexBlackfrost Год назад +8

    It's amazing that this is available for everyone

  • @steviebrown64
    @steviebrown64 Год назад +43

    Your work continues to be an inspiration, super clever stuff. It is extremely generous and appreciated that you share all this knowledge for free. You're a legend

  • @alexcoaton4445
    @alexcoaton4445 Год назад +3

    This is absolutely epic! Thanks for all of your effort on the shaders, tooling, instructions and tutorial!

  • @blw1117
    @blw1117 Год назад +6

    you are for real a super star, and many indie devs owe a lot to ur amazing work!

  • @_zurr
    @_zurr Год назад +6

    Absolutely incredible work, and thanks for making this setup! I'm eager to mess around with it.

  • @drawhou9356
    @drawhou9356 Год назад +3

    You are a goodsend!, I was just reciently trying your older tutorials but couldn't get the tool to work and you just saved me dropping this video, a million thanks and your work is amazing

  • @EthanGameStudio
    @EthanGameStudio Год назад +6

    You shader is absolutely insane! It's a real pleasure to use! And please do the guide to cut and especially burn the grass!
    This is great work! I love your shaders!

    • @klonsemannful
      @klonsemannful Год назад +2

      I would like to watch the grass cutting guide too.

  • @sqwirul
    @sqwirul Год назад +6

    Your stuff is really good :) great work!

  • @eugeneranoco1977
    @eugeneranoco1977 Год назад +1

    Bro, all I can say is great job! I've been using your grass from day 1 of my career as unity developer. I've been loving your work ever since and this update makes it more amazing! I also want to thankyou for making this project to the public! Great job!

  • @lucianbodnaresku6568
    @lucianbodnaresku6568 11 месяцев назад

    That's an awesome tool i cant belive its free you post so much high quality stuff, i love it. ty for the video boss

  • @RoroGames03
    @RoroGames03 Год назад +1

    a guide on adding buffers to the grass would be amazing!! Thank you!

  • @floofinator
    @floofinator Год назад +3

    Incredibly well done!

  • @webtemp
    @webtemp Год назад +1

    I don't know why dont you have millions of subs and viewa. Excellent job ! And I don't mean this video. Your website and the other tutorials. Keep it up !

  • @Janeator
    @Janeator Год назад +2

    I do have interest in the cut and burn buffers setup!

  • @Cachinno
    @Cachinno 7 месяцев назад

    Amazing work! I absolute love that because of good people like yourself I am able to make my school assignment look hella neat hella fast. Thank you!

  • @helloimvic7451
    @helloimvic7451 6 месяцев назад

    I created a prototype using your grass system. It was very useful and easy to use. Thank you so much.

  • @StarkTech47
    @StarkTech47 Год назад +5

    After trying a lot of packages without any success, I finally tried yours and I have to say that you have done a fatastic job. It looks like magic, only one batch to render the grass and it works perfectly on mobile. This is exactly what I was looking for!
    It would be better if you could create a package to make the setup process simplier. And for the blend texture terrain, may be there is a way to directly get the terrain texture instead of using an extra camera but I don't no if it is feasible, just an idea.
    It is a very incredible how performante it is, thank you so much for sharing it!
    Last question about the licence of this tool, do you allow people to sell a game using this tool? I have seen nothing about it on your Patreon page so I prefer to ask.

  • @hunabku9615
    @hunabku9615 Год назад +1

    So much good ! Thanks a lot! Definitively interrested to a guide to cut and especially burn the grass!

  • @MILKSHAKEBATTLECAT
    @MILKSHAKEBATTLECAT 5 месяцев назад

    I am in LOVE with this shader! Thank you for making it free to us peons!!

  • @FloMinicHD
    @FloMinicHD Год назад

    Love how you even explained the loop for the triangle creation - awesome video :) You got my sub!

  • @influency4075
    @influency4075 Год назад

    Ok, I think im going with that grass again, went to use Stylized Grass shader, but the automatic system of yours tempt me a LOT!

  • @Private_Duck
    @Private_Duck Год назад +1

    Love your stuff. Great work

  • @ineble
    @ineble 3 месяца назад

    감사합니다.

  • @x-power
    @x-power Год назад

    Amazing idea!!! Amazing WORK!!! And AMAZINGLY THANK YOU for sharing it with US!) Have a WOUNDERFUL TIME!!!

  • @flurinjenal374
    @flurinjenal374 6 месяцев назад

    This grass looks so good.

  • @AFrameGames
    @AFrameGames 7 месяцев назад

    If you are having issues with the paint tool not drawing the grass, import the .shader file from her post, create a material out of that, and set the brush material to that created material. Your project may not be using urp and that seems to be the issue.

  • @orpheuscreativeco9236
    @orpheuscreativeco9236 7 месяцев назад

    DAANG!!! 😮 This is AWESOME!!! Thanks for sharing 🙏✨

  • @alexleonardkrea
    @alexleonardkrea Год назад

    That looks so impressive! 🔥

  • @yaaannn8126
    @yaaannn8126 Год назад

    your grass is famous, I see it in a lot of indie games

  • @edwardbull8687
    @edwardbull8687 7 месяцев назад

    I wasnt getting shadows on top of the grass from other objects. I assumed it might be related to the material generated for the grass so I messed around and the only way I could get it to work is by setting the shader to produce "lit" rather than "unlit" but as it looks the same either way im happy with the fix.

  • @laindono5158
    @laindono5158 Год назад

    You can use Instancing with triangle-strip. Instead per-vertex data use per-instance data. In shader code you get vertex index, so you can build grass blade directly in vertex shader. Compute stage is still needed for culling or wind lookup. But less memory bandwidth be used. x5 less data will be transferred through memory. The perf gain is even greater if you use more vertices per blade of grass. Why does this affect performance? Memory is dramatically slow. You can win x2 performance on this without any other tricks.

  • @nickdev
    @nickdev Год назад

    USEFUL is the definition of this Toll. Tks!

  • @concernedcitizen9101
    @concernedcitizen9101 Год назад

    Wow. That's amazing. Thank you!

  • @rb7372
    @rb7372 Год назад

    You are simply amazing, keep it up!

  • @klonsemannful
    @klonsemannful Год назад

    Thanks for sharing this. Gear work !

  • @adamarzo559
    @adamarzo559 Год назад

    If anyone else has an issue where the material you created from the shader is pink, try going into your project settings -> Graphics and making sure the scriptable render pipeline settings is set. Took me a while to figure that out sadly.

  • @StigDesign
    @StigDesign Год назад

    Looks Really nice and cool :D

  • @realsplitgames
    @realsplitgames Год назад

    I would love to see a guide on adding buffers to the grass!

  • @skourge891
    @skourge891 Год назад

    Thank you soo much for sharing this!

  • @xenogamingllc
    @xenogamingllc Год назад +1

    Really good job!

  • @metinbatuhanozucan5358
    @metinbatuhanozucan5358 Год назад +1

    I am interested on burning grass, cutting grass. If you have time for that that would be great. Thank you for the awesome video

  • @gdfk_dev
    @gdfk_dev Год назад

    Looks awesome!

  • @zekerton7262
    @zekerton7262 Год назад +1

    Something is wrong with the shadergraph! I followed the instructions and put in the hlsl file. But the nodes that go into those nodes don't exist because my Unity says they are custom. Things like "Vertex ID" and "ColorPaint" have an error next to them that says "Validation: This node type could not be found. No function will be generated in the shader."

  • @IceBreakINQGameDev-pp6zu
    @IceBreakINQGameDev-pp6zu 7 месяцев назад

    Fantastic Work!

  • @jburch7777
    @jburch7777 Год назад +1

    great work!

  • @balefirefury
    @balefirefury 2 месяца назад

    I got this to work in HDRP by opening the ShaderGraph, manually setting grass.hlsl in GetGrassData and the Blending Texture, and changing the Active Target to HDRP. Then it should be straightforward to follow the setup like normal.

  • @racherim
    @racherim 7 месяцев назад +1

    For some reason, the color doesn't change its only showing the bottom tint color.

  • @Thyzinho
    @Thyzinho Год назад +2

    for some reason, my top tint is not working. The bottom tint is the only colour that affect the grass. Can someone please help me out on this?

  • @МихайлоДовбня-ц6ф

    very cool! I want a quick tutorial with cutting grass or burning

  • @Klash120
    @Klash120 Год назад +1

    Amazing & well documented! Overview points you went over are super nice touch as well! As the buffer sends the into to shader graph, Is it possible for artists to tweak appearance, etc, etc on grass blades?

  • @neozoid7009
    @neozoid7009 Год назад +1

    I love ur videos so much❤

  • @tejastjs9981
    @tejastjs9981 Месяц назад

    You are a godsend!

  • @jayjackson9209
    @jayjackson9209 Год назад

    @MinionsArt thank you! Sort of a side question - could you do a video or link to some documentation that talks about your workflow for those nice base textures used? The hand-painted looking green terrain under the grass looks great, would love to know more about how to create something similar :)

  • @armutcocuk7783
    @armutcocuk7783 Год назад +2

    I want to use manual update after game started how can i do that? Since my game is multiplayer and players spawn at different times after the scene has begun , I need to update after every player has spawned. Other than auto update because u said it is very slow.

    • @anderp.a.l.e8915
      @anderp.a.l.e8915 3 месяца назад

      I've juste managed to do it, sorry, 1 year late but you just need to do this :
      When your player spawn (or any new GameObject in the scene) you need to call the function Reset of the class GrassComputeScript.
      You can do that in your network manager that calls the Reset at each spawning.
      To do this, set a reference to the grass object and the GrassComputeScript like so :
      GameObject grassObject;
      GrassComputeScript grassCompute;
      Find references to the grass object and script with this code:
      grassObject = FindObjectOfType()?.gameObject;
      grassCompute = grassObject.GetComponent();
      And when spawning, call :
      grassCompute.Reset();
      More infos in the GrassPainterWindow given in the files in description.
      Have a nice one ! 😁

  • @__Rizzler__
    @__Rizzler__ Год назад +1

    SUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII LESGOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

  • @Jeremy-bg6fk
    @Jeremy-bg6fk 11 месяцев назад

    omg a guide on how to cut the grass would be so cool !!!

  • @AbachiriProduction
    @AbachiriProduction Год назад

    bro very cool im using 2.0 i will update it to 3.0 . ur a legend bro

  • @Grand_Alchemist
    @Grand_Alchemist Год назад +2

    Thank you for the shader and the tutorial. I am having an issue where the grass won't paint. When I check "Paint Mode" I can see the green circle in the viewport, but when I left click, it selects / drags out the viewport selector box and doesn't paint grass.

    • @hopelessshadow9427
      @hopelessshadow9427 Год назад

      did u fix it?

    • @hopelessshadow9427
      @hopelessshadow9427 Год назад +2

      It is Right click to paint not left click

    • @WilliamLittlejohn-np2ht
      @WilliamLittlejohn-np2ht Год назад

      @@hopelessshadow9427 ooh right click to paint! Derp! I though I had done the setup wrong. Thanks!

    • @ssS-vh5yc
      @ssS-vh5yc 6 месяцев назад

      @@hopelessshadow9427 O my gosh,Thank you! You are my savior.

  • @shinonkagura1476
    @shinonkagura1476 Год назад

    I am interested in further tutorials!!

  • @qu1etdev
    @qu1etdev 2 месяца назад

    when I set the graph to lit, it enables shadows but increases the brightness a lot, ruining the blend effect. (It isn't bloom or any other post process feature, I've tested that), would there be any other reason? Thank you

  • @hirano7312
    @hirano7312 Год назад +2

    Cutting and Burning pls thank you

  • @kyuubiXkitsune98
    @kyuubiXkitsune98 2 месяца назад

    Hi! i'm making an indie game with a friend and tried using your grass which looks great! Is there a way to use this grass in our game when publishing it? Hope it's okey to ask!

  • @LemonL1ke-zr5do
    @LemonL1ke-zr5do 5 месяцев назад

    I am in URP and I follow the steps here correctly, having a mianCamera with correct tag but can't able to see any grass being rendered in scene/game at all. Although I can see the grass count going up after painting. Much appreciate any help if possible.

  • @ronny4176
    @ronny4176 Год назад +2

    is there a way to generate the grass on mesh while being in playmode? like generating the grass on a procedural terrain?

    • @Willhelmet6845
      @Willhelmet6845 Год назад

      This please!

    • @KaganParlatan
      @KaganParlatan Год назад

      Any solution ?

    • @liamassassingaming922
      @liamassassingaming922 4 месяца назад

      Currently having the same issue, did you ever find a solution?

    • @ronny4176
      @ronny4176 4 месяца назад +1

      @@liamassassingaming922 isnt really possible since all placing scripts are written with the unity editor libary. u would have to rewrite this part completely new. u could try a former version of this grass shader. this is a bit easier, but still a pain (i gave up on this aswell bc it got laggy very quick).

  • @Moyse3333
    @Moyse3333 Год назад

    Great work, and thanks a lot for the tool.
    A question, at 8:58 you haven't yet set the color of the grass. I get the same grey grass even after changing the Brush color on the Grass Tool And the Tinting Settings on the General Settings. Any idea what might be causing this ? (I fixed the Shader Graph like you showed and I get no errors.)
    Thanks :)

    • @MinionsArt
      @MinionsArt  Год назад +1

      Is the blending enabled maybe? that texture will be gray by default I think.

    • @Moyse3333
      @Moyse3333 Год назад

      @@MinionsArt You are right, I left it On when I was trying the blending. Thanks a lot :)

  • @madamutzsar
    @madamutzsar 5 месяцев назад

    Using URP, my grass isn't reflecting the top tint color at all, it only appears as the bottom tint, and although grass is receiving shadows (I set shadergraph to Lit) they're barely noticeable. Edit update: It was the blendMult on the material, gotta set it higher than 0! I am a fool and a clown. Still dunno about the lighting tho

  • @QuangNguyen-lj7ff
    @QuangNguyen-lj7ff Год назад

    I would love a guide on how to cut and burn grass

  • @Rdp0300
    @Rdp0300 5 месяцев назад

    any thoughts how would i make it have flat ends like it was cut or mowed?

  • @gamesunlocked9211
    @gamesunlocked9211 6 месяцев назад

    shadows of other objects is not falling on the grass, how to fix it?

  • @heng6413
    @heng6413 Год назад

    Thanks for sharing! Looking forward to your cut & burn tutorial. How this performance compare to unity terrain grass?

  • @ooDEFENDERoo
    @ooDEFENDERoo Год назад +1

    Wow! Amazing grass! Can u make a Blender cavity effect shader please?

  • @SeyrenVT
    @SeyrenVT Год назад

    Would you recommend to use this on a VR game? how do you feel about perfomance about it?

  • @WNEEE
    @WNEEE 11 месяцев назад

    Why did you abandon the smooth transparency in the lower part of the grass, in favor of mixing the lower part of the grass with the terrane? How can I return the transparency at the bottom as it was done in the previous version of your shader?

  • @閔閔-j2b
    @閔閔-j2b 4 месяца назад +1

    Since it is a unlit shader, i wonder how you add receive shadow to your grass, thank you.

    • @MinionsArt
      @MinionsArt  4 месяца назад +1

      Set the graph to lit

    • @閔閔-j2b
      @閔閔-j2b 4 месяца назад

      @@MinionsArt Oh, thank you, it works~ can't wait to learn more from your video~

  • @LetuscontinueBlending
    @LetuscontinueBlending Год назад

    awesome allready better than the terrain tools grass! You using indirect gpu instancing for the grass meshes?

  • @VFFAME
    @VFFAME Год назад

    How to make a prefab of a plane with grass for example?

  • @taigamoth
    @taigamoth 8 месяцев назад

    How would I change the darker colors being on the top of the blades?

  • @BillyColtrainButton
    @BillyColtrainButton 10 месяцев назад

    Where did you get the base texture for the terrain object below the grass from? I can't seem to find any

  • @Sharksleepy
    @Sharksleepy Год назад

    太牛了大佬!十分感谢!

  • @itsgamedev362
    @itsgamedev362 Год назад

    It works fine when files are in Assets folder(as setup shown). When I move it to a specific folder it does not and shows errors in console.

  • @tomod_1022
    @tomod_1022 Год назад

    this is Fantastic!
    However,when I build my project to my Meta Quest 2,it only show the shadow of the grass but not the grass itself...

  • @Jeremy-bg6fk
    @Jeremy-bg6fk 11 месяцев назад

    The brush color isnt showing up for me! only the blended color, is this common? I cant figure it out

  • @Motivational-Mango
    @Motivational-Mango 3 месяца назад

    nice i like the grass feel like in the morning when i wake up and smeelll the cows and grass and the different flower like a small flower or the big and different grasses hehe nice

  • @snowstudio72
    @snowstudio72 Год назад

    @MinionsArt There is a problem i am facing while implementing this tutorial my paint tool is not showing the grass. Can any one tell me the solution? On the very first attempt it show null reference on ShaderInteractor if I place a cube or cylinder with the script then there was no null reference but am not able to see anything. Any solution?

  • @minima_studios
    @minima_studios Год назад

    i have an outline shader, even thoiugh i included my plane object and my grass system holder object the lines are still going through the grass. Any ideas?

  • @ATMLVE
    @ATMLVE Год назад +1

    Hi, is there any way to generate this at runtime on procedurally generated meshes?

    • @KaganParlatan
      @KaganParlatan Год назад

      I wonder same question. Did you find anything ?

    • @ATMLVE
      @ATMLVE Год назад +3

      @@KaganParlatan Hi! So this asset in particular, no this can not be done. The best place to start for procedural runtime grass is feeding mesh data into an array and using that in one of unity's GPU instancing methods.

  • @lucclavel2744
    @lucclavel2744 Год назад

    Hello, everything is working fine in the editor, but when I hit play, the grass becomes all thin, like its width has been divided

  • @mishafbx
    @mishafbx Год назад

    You are goddes. 💚💚 I'm a 3d artist who is trying to learn some shader but those are too much for me, i hope one day i will create this :(

  • @tboxfinn
    @tboxfinn Год назад

    anyone knows how can I use the Regenerate on current Mesh inGame, i create a random mesh so I want to spawn grass over the mesh randomly too

  • @rackneh
    @rackneh Год назад

    Since you're instantiating a mesh, would it be possible to project a texture on the grass instead of just using colours?
    If that'd be possible for a v4 It'd be perfect for me!

  • @lordtimmy1472
    @lordtimmy1472 Год назад

    Does this only work on terrain or can i also paint the grass on imported models? :)

  • @bradakstudios
    @bradakstudios 11 месяцев назад

    Could you make an updated hdrp version

  • @AuraGonzález-v8f
    @AuraGonzález-v8f Год назад

    Awesome tool, do you know if it's possible to generate grass on the bottom half of a sphere?

  • @ugurhank
    @ugurhank Год назад

    Heloo i want add grass to my procedural mesh. How can i generate grass to that mesh pls help

  • @tyrja4688
    @tyrja4688 6 месяцев назад

    When I start the game, all the grass disappears. What is the reason for this? Please help :(

  • @davidmoore5414
    @davidmoore5414 3 месяца назад

    Hey, any easy way to allow grass Gen all over entire object? Rather than just the top?

    • @MinionsArt
      @MinionsArt  3 месяца назад

      The tool uses a normal limit, you'll have to remove that part of the code

  • @enchanteddonutdev
    @enchanteddonutdev Год назад

    How can you call "Add Positions From Mesh" from script?

  • @BenAordure2
    @BenAordure2 9 месяцев назад

    I can't find the tool window for the grass tool is it normal?

  • @tyrja4688
    @tyrja4688 6 месяцев назад

    I add the grass by right-clicking on the mesh, there is an increase in the number of grass, but I cannot see the added grass, they are not visible. How can I solve this?

    • @LemonL1ke-zr5do
      @LemonL1ke-zr5do 5 месяцев назад

      Hi, did u solve this and if so how? ☺