Quickly Scatter Grass and Trees on Terrain in Unity

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 180

  • @lorenzo5679
    @lorenzo5679 Před 3 lety +6

    This guy makes it so easy I bet a 12 year old could do this! Really nice job on explaining how things work.

    • @UGuruz
      @UGuruz  Před 3 lety +1

      Wow, thanks!

    • @RavenArtzy
      @RavenArtzy Před 3 lety +2

      Im 11 and i already know how to add pbr materials to terrain and create my own tree.

    • @lighthousestudio15
      @lighthousestudio15 Před 4 měsíci

      ​@@RavenArtzynice job kid i started learning unity and programming when I was 9 years old but I still don't know how to do that stuff 😅😅

    • @BrianVison2.0
      @BrianVison2.0 Před 3 měsíci

      wow! im 12 and i am already doing this easily

  • @digiacomtech5589
    @digiacomtech5589 Před 3 lety +8

    A couple suggestions I never hear people mention when talking about terrain foliage...
    1) The two colors for grasses should be muted (or greyed) in most cases. This is because the grass textures already have color in them so adding another coloring effect can make the grasses too vibrant when in nature they are a bit more muted. Play around with these settings, try using a grey scale and see what you get (white for fresh and darker greys for dry).
    2) Adjust the scales more drastically, specifically the MIN scale. Don't be afraid to drag this all the way down to zero (0) to make your grass/flower arrangements more patchy. And don't forget to adjust the width scale as well, you can get allot more variety by randomizing these scales a bit.
    But as always, you are the one who decides what looks the best for your projects ;)

    • @UGuruz
      @UGuruz  Před 3 lety +2

      Great.Thanks for the suggestions.

    • @Wohodix
      @Wohodix Před 3 lety

      2/ I agree but it would depend on the context, you dont want to generate grass that is barely visible as it would eat lots of performance for not much result.

    • @digiacomtech5589
      @digiacomtech5589 Před 3 lety

      @@Wohodix ... True, which is an base problem with Unity Grass. I don't ever take it to 0, but there ma be cases where one might want to go there. And then tune the draw distance down to reduce the overhead. There are always tradeoffs with any game development ;)

  • @RmonteiroHQ
    @RmonteiroHQ Před 4 lety +79

    My biggest problem with exterior scenes, specially forests, is the performance drop... would be nice to have a video to adress the optimization options for a dense forest scene. All the options like texture compression, Lods, etc...

    • @polysyncproductions6199
      @polysyncproductions6199 Před 4 lety +14

      I've been meaning to make a tutorial on that! Optimization is one of the most overlooked yet important mechanics in any project.

    • @smrutiization
      @smrutiization Před 4 lety +2

      Very good and most important topic in level design.

    • @vklymenko
      @vklymenko Před 3 lety +1

      I guess we need to wait for ECS support for these assets to have 10x better performance

    • @N1ghtR1der666
      @N1ghtR1der666 Před 3 lety +2

      use impostors and consider picking up tools like "Amplify Impostors" from the unity store that can convert any object into an impostor in editor to be set as one of your LODS

    • @cebe4028
      @cebe4028 Před 3 lety +2

      The real game changers are proper LODs, mesh combining and Mesh Impostors. Also light baking settings, and static batching/GPU instancing.
      Would love to make a video, but my pc is potato, that's why I know that stuff lol

  • @warsin8641
    @warsin8641 Před rokem +1

    this absolute unity gangster!

  • @augustoantenucci4725
    @augustoantenucci4725 Před 4 lety +18

    Can you please make a tutorial on how to upgrade forest environment dynamic nature to HDRP ? Thank You

  • @GymCritical
    @GymCritical Před 4 lety +6

    Another tip, because I see a lot of terrain that could look better: increase your terrain’s tiling. Sometimes the default 2x2 isn’t enough, so go for 20x20. Or at least experiment!

    • @cebe4028
      @cebe4028 Před 3 lety

      Afaik, the advanced terrain tool auto meshes it based on camera distance, at least it did for me

  • @kallezter9301
    @kallezter9301 Před 3 lety +1

    When i try to add the trees, it doesnt work? i have tried everything?

  • @fukukyun78
    @fukukyun78 Před 2 lety

    It's a very useful tool, but I wish the max values were quite a bit higher. But, you can increase the grass resolution instead of spamming grass objects, it's easier if you want to change it, you don't have to apply the same settings to ALL the grass objects.

  • @rockittt
    @rockittt Před 3 lety +1

    No meshes that ive created work as a paintable mesh using this method, nothing appears when I select my mesh as a grass type, Ive tries with FBX models that Ive created as well as a prefab with LOD components... this is annoying, do they have to be a particular model file type or something?

    • @planebreach
      @planebreach Před 2 lety

      Same here, did you found out a solution ?

  • @jso19801980
    @jso19801980 Před 3 lety +3

    Hello,
    for some reason the trees work well but the grass prefab shader turns to the default grey using hdrp

  • @sadafnoor5569
    @sadafnoor5569 Před 2 lety

    thank you so much for sharing your knowledge with us God bless you

  • @unitylearnerboy2696
    @unitylearnerboy2696 Před 4 lety +1

    Very useful video 👍

  • @Bodycam™
    @Bodycam™ Před 4 lety +2

    Bhai yarr pubg ka alternative banao na!
    Keep it up bro!🔥🔥🔥😘😘😘

  • @vincentwolfgramm-russell7263

    Thank you for your videos! They are all very helpful!

    • @UGuruz
      @UGuruz  Před 3 lety

      You're very welcome!

  • @GaryMcKinnonUFO
    @GaryMcKinnonUFO Před 2 lety

    Cool tool, thanks for sharing kind sir :)

  • @TJ-tu5xc
    @TJ-tu5xc Před 3 lety

    If nothing spawns no matter what you try, change the "Height range". The height range seems to be based on the global height of your scene and not on the terrain height. So if the lowest point of your terrain is placed at a global height of 1200 for example, but your height range is 0-1000 (default value), then nothing will spawn. if you change it to 0-1400, you will then have everything spawning on the first 200 metres of height of your terrain

    • @UGuruz
      @UGuruz  Před 3 lety

      Thanks for the info.

  • @GlitcgyGamer
    @GlitcgyGamer Před 3 lety

    Thank you so much for this tool sir...it helps me a lot.

  • @HeathClose
    @HeathClose Před 4 lety

    Awesome... I'll be using this for sure

    • @UGuruz
      @UGuruz  Před 4 lety

      You're welcome 🙂

  • @akbarhaironi4512
    @akbarhaironi4512 Před 4 lety +1

    Thanks for sharing bro, please give me tutorial to make road with easyroad

  • @THETCDCStudios
    @THETCDCStudios Před 3 lety +1

    i clicked on add active terrains nothing happens and it show nothing

  • @terryperehinec
    @terryperehinec Před 3 lety

    This is an amazing tutorial! I am wanting to learn unity and create environments and this was explained very well!
    Is there a way to record the gameplay when you move around the environment (as if you were actually playing the game)? Not sure if that made any sense.
    I ask this, because when I do make environments it would be nice to show some areas.
    I also subbed!

    • @UGuruz
      @UGuruz  Před 3 lety

      For that you can use screen recorder software like OBS.

  • @Awlorein
    @Awlorein Před 2 lety

    You're fantastic.

  • @omkarvitukade3263
    @omkarvitukade3263 Před 4 lety

    I liked it soo much brother 😍😍keep it up...

    • @UGuruz
      @UGuruz  Před 4 lety

      Thank you so much 😀

  • @abhilashkumar3116
    @abhilashkumar3116 Před 4 lety +1

    Nice bro keep going ❣️

  • @CelestiaRosa
    @CelestiaRosa Před 4 lety +1

    can you show us how to walk on our project like what you did here 8:50 in first-person & third a person?

    • @UGuruz
      @UGuruz  Před 4 lety +1

      I used this tool. bit.ly/3firCel

    • @CelestiaRosa
      @CelestiaRosa Před 4 lety +2

      @@UGuruz thanks, sensei :)

  • @PlayerOne360
    @PlayerOne360 Před 4 lety

    Thanks for this helpful tutorial

  • @chillcarrier
    @chillcarrier Před 3 lety +1

    Do you maybe have experience with the HDRP Hair Shader Master Node or could show the basics on implementing a solid hair/fur solution in Unity? It someow seems to be really hard to find usable information on that topic or a good example project.

  • @ricardojaviergarnicapena6749

    Amazing video. Is it possible to use a terrain created in Blender? Thank you, again your video was amazing.

    • @UGuruz
      @UGuruz  Před 3 lety +2

      You can export height of your terrain from blender and then use that map on Unity terrain.

    • @kikeluzi
      @kikeluzi Před 2 lety

      I did it importing the model to Unity and converting into Terrain! :D

    • @ricardojaviergarnicapena6749
      @ricardojaviergarnicapena6749 Před 2 lety +1

      @@kikeluzi Thank you. If you don't mind, could you tell me how you did it?

    • @kikeluzi
      @kikeluzi Před 2 lety +1

      @@ricardojaviergarnicapena6749, sure! It's a option in Unity tabs. I think it's "terrain > convert to terrain" (or its on window; edit; or something near)

  • @Gabs_jla
    @Gabs_jla Před rokem

    Thank you so much

  • @pac5266
    @pac5266 Před 4 lety

    Enjoyed the tutorial, really nice one

    • @UGuruz
      @UGuruz  Před 4 lety

      Thank you! Cheers!

  • @alejandroperez4664
    @alejandroperez4664 Před 4 lety +2

    Thanks for sharing! I just wanted to know if this asset is the onIy one to create terrains and tree. The quaIity is good and I Iike it!

    • @UGuruz
      @UGuruz  Před 4 lety +1

      No, there are lot of free and paid assets are available on Unity Asset Store.

  • @kraxti4795
    @kraxti4795 Před 2 lety +1

    Can u explain how to keep wind animations of trees when they are pink. In one of your videos u covered how to make the texture visible but animations got lost during that process.
    All my prefabs from the BOTD asset you used in the video are pink and loose their animations when changing the shader to "URP Lit". What do I have to do to get this custom "CTI - Shader" that is used in the BOTD asset?
    I would appreciate an answer. Im quiet new to unity and slowly loose the interest bc I cant fix it :/

  • @issdar
    @issdar Před 4 lety

    Great video, thanks for the tutorial!

    • @UGuruz
      @UGuruz  Před 4 lety

      Glad it was helpful!

  • @rijiyu6745
    @rijiyu6745 Před 2 lety +1

    Why I can not find the "Vegetation Spawner" and can not add "Vegetation Spawner" when I click "Add component"? Thanks

    • @WizardReel
      @WizardReel Před 2 lety

      After I installed Vegetation Spawner" , it shows up in Unity for me as "Spawn"

  • @magicovergravityproduction1984

    Thanks for the tutorial!

  • @Internet_Enjoyer
    @Internet_Enjoyer Před 2 lety

    hello! :) one question. do you know how grass+terrain tool perform performance-wise compared to using polybrush to paint grass as prefabs? my case is a VR game with a static player position, so I dont need LODs but different prefabs arranged circular around a player.

  • @lagilagimolaglag
    @lagilagimolaglag Před 4 lety +1

    nice

  • @markgianturco5677
    @markgianturco5677 Před 3 lety

    very helpful, thanks.

    • @UGuruz
      @UGuruz  Před 3 lety

      Glad it was helpful!

  • @et1965
    @et1965 Před 4 lety +2

    This seems to break my terrain textures because I am using Microsplat. :(

  • @semihcetin3958
    @semihcetin3958 Před 2 lety

    Well just subscribed well done!

  • @tiagoandrade605
    @tiagoandrade605 Před 3 lety

    GOOD STUFF!!!!! Thanks a lot!

  • @cgimadesimple
    @cgimadesimple Před rokem

    i love it

  • @BruceT-rg8bp
    @BruceT-rg8bp Před 10 měsíci

    Is the Unity software free? Do I need to buy any addons in order to start creating level design? Thanks

  • @tablettablet4792
    @tablettablet4792 Před 2 lety

    Can you use this with the vegetation engine.whitout inflicting problems. I think the scatering is great

  • @quarantinethis8981
    @quarantinethis8981 Před rokem

    Do you plan on updating this video at any point or just keep? Right now its well out of date and you can no longer change colors or do about 1/4 of what you mention, its changed how you add terrain. Thanks

  • @planebreach
    @planebreach Před 2 lety

    For some reason when i scatter mesh grass ... it's not showing. Texture does show but not, mesh ... ? I am using my own mesh models i exposrted from WoW ... they work well as prefabs ... is there any specific reason they don't work with the tool ?

  • @kksethi02
    @kksethi02 Před 4 lety

    Good one! Keep it up.

  • @ricardojaviergarnicapena6749

    Hi, excellent video. I have a problem. I removed one species of trees and then I click play and send me error "Tree removed: invalid prototype 0 - UnityEngine.StackTraceUtility:ExtractStackTrace ()" and I cant play the scene. What did I do wrong? Thank you, amazing chanel.

  • @jredden1047
    @jredden1047 Před 2 lety

    How did you get so many grass meshes in the same area? Did you turn down the patch resolution to 8 or something?

  • @abu4077
    @abu4077 Před 3 lety

    thanks

  • @samevans515
    @samevans515 Před 3 lety +2

    Is this done with HDRP enabled?

  • @piyushdhariwal5398
    @piyushdhariwal5398 Před 2 lety

    can we placed diffrent types of trees at the same time

  • @Cthulhu013
    @Cthulhu013 Před 3 lety

    Would this also work in unison with a system designed to chop these trees down?

  • @tastimiku5158
    @tastimiku5158 Před 3 lety

    I have a problem. with many tree packs the trees have no colisin

  • @IDeias-gy1jx
    @IDeias-gy1jx Před 3 lety

    You can teach how to optimize this because so much grass must be heavy please i really nerd.

  • @nerffighters5225
    @nerffighters5225 Před 3 lety

    Uguruz just last question when I make my AI enemy and when I enter in my play mode only the shadow of my enemy comes not the exact enemy what should I do and when I go to Bake option in navigation it does not bakes also and some error come???

  • @balaganesh808
    @balaganesh808 Před rokem

    Can you make a video of how to make cave and waterfall?

  • @Chandan-xz8cd
    @Chandan-xz8cd Před 4 lety

    Thanks man

  • @HistGeoFacts
    @HistGeoFacts Před 3 lety

    Hey awesome tutorials I'm an unreal user so I'm using sequencer over there but in unity cinemachine is bit complicated can u do a tutorial on it I'm trying to make a short movie it would be helpful !! Thanks in advance !!!

    • @UGuruz
      @UGuruz  Před 3 lety

      I already have a tutorial about that. Check my video about "Making of Car Render Demo"

    • @HistGeoFacts
      @HistGeoFacts Před 3 lety

      @@UGuruz wow awesome bro !! Thanks a lot !!!

  • @triplex3459
    @triplex3459 Před rokem

    Does someone know a program or blender addon used to create trees, bushes and grass?

  • @craft9936
    @craft9936 Před 3 lety

    Is increible

  • @danlee7923
    @danlee7923 Před 4 lety +1

    Is this URP or HDRP?

    • @UGuruz
      @UGuruz  Před 4 lety +1

      It's Built In Renderer.

  • @lukasin9351
    @lukasin9351 Před 3 lety

    When i add first person all in one my trees are changing colors,is there any fix?

  • @QuietStudiosOfficial
    @QuietStudiosOfficial Před 3 lety

    why can you pass through the trees?

  • @popbat
    @popbat Před 3 lety

    I click add terrain and nothing happens.

  • @ruth5892
    @ruth5892 Před 4 lety

    sir.... how did you make a demo video in starting and ending

  • @candykiss4584
    @candykiss4584 Před 3 lety

    icant find detail on my terrain setting,can you help me?

  • @SciencewithIrfan
    @SciencewithIrfan Před 8 měsíci

    can this work for URP?

  • @user-uk4ny3ul6o
    @user-uk4ny3ul6o Před 2 lety

    hi can help to how make mask map in ps or other prog

  • @divyanshporwal9720
    @divyanshporwal9720 Před 3 lety

    will it work with HDRP?? and i m doing this for my Cyberpunk city scene...... will it also spread on my roads and under my builldings, i dont want it to spawn there

    • @UGuruz
      @UGuruz  Před 3 lety

      Trees will work but not the grass.For the grass watch my HDRP grass video. You can easily remove the tress and grass using brush under the buildings and roads.

  • @shaikhabdulbasit5717
    @shaikhabdulbasit5717 Před 2 lety

    Does this works with urp?

  • @ashdev
    @ashdev Před 3 lety

    Sir the book of the dead demo project is not working properly its showing errors and the materials are looking blue and some pink

    • @UGuruz
      @UGuruz  Před 3 lety

      Try Unity 2018.3.

  • @RavenArtzy
    @RavenArtzy Před 3 lety

    Why can i go pass through trees?

  • @wikeurr
    @wikeurr Před 2 lety

    Hello, can someone explain to me how does he do the camera cinematic at the beginning or at the end ? thank you so much ^^

    • @UGuruz
      @UGuruz  Před 2 lety +1

      I used cinemachine and Timeline for that.

  • @cyberneticstudio8736
    @cyberneticstudio8736 Před 2 lety

    My grass is not dense enough, how did you put so much grass??? I have big spawn chance but nothing... I also turned up grass density.

  • @XxCasualGamerxX
    @XxCasualGamerxX Před 2 lety

    it spawns floating trees for me

  • @Oceans24misson
    @Oceans24misson Před 3 lety

    its making the plants ike 2d images

  • @kikeluzi
    @kikeluzi Před 2 lety

    Awesome asset :v just too heavy for generate things at each change...

  • @RudyWasAlibe
    @RudyWasAlibe Před rokem

    I cant see vegetation spawnner script

  • @mamtapatil1892
    @mamtapatil1892 Před rokem

    error cs0104 came when i downloaded flooded pack

  • @madryan2093
    @madryan2093 Před 3 lety

    what computer or pc are you using

    • @UGuruz
      @UGuruz  Před 3 lety

      check description.

  • @markegan2570
    @markegan2570 Před 3 lety

    Can it spawn other objects such as rocks?

  • @erikm9768
    @erikm9768 Před rokem

    For some reason i dont get any grass at all :(

  • @Isratrakhi
    @Isratrakhi Před rokem

    How download project

  • @N1ghtR1der666
    @N1ghtR1der666 Před 3 lety

    the main problem I have with unity terrain is that the grass has no shadows, do you know how to fix that? also the built in wind for unity is not great because you cant add octaves of perlin noise to make it look more realistic

    • @UGuruz
      @UGuruz  Před 3 lety

      No, Unity grass does not support shadows. For the wind noise you need to make your own shader.

    • @N1ghtR1der666
      @N1ghtR1der666 Před 3 lety

      @@UGuruz Yeah I will give that a try, does the 3d (not billboard) grass like you used in the video get shadows?

    • @UGuruz
      @UGuruz  Před 3 lety

      No, but if you scatter the grass as tree then it will have shadows. But it will highly affect your game performance.

  • @nabanitadebnath9394
    @nabanitadebnath9394 Před 3 lety

    Which graphic card do we neeed for this terrain

    • @UGuruz
      @UGuruz  Před 3 lety

      At least GTX 1660 minimum.

  • @AvitheTiger
    @AvitheTiger Před 3 lety

    How do I save all the trees/grass to a single mesh to reduce CPU/GPU usage?

    • @UGuruz
      @UGuruz  Před 3 lety +1

      I don't think you can do that.

    • @AvitheTiger
      @AvitheTiger Před 3 lety

      @@UGuruz oh ok. Thank you anyways

  • @ldsr3181
    @ldsr3181 Před 4 lety +1

    Ecxellent

  • @mrmicky2372
    @mrmicky2372 Před 3 lety

    we need a car racing game tutorial. plzz bhai banado video

  • @dennispr5996
    @dennispr5996 Před 3 lety

    Im getting the same errror over and over, even though I followed every step... I ad a tree, randomize the Seed and still get the same Problem. Could you help? "NullReferenceException: Object reference not set to an instance of an object"

    • @discocat9431
      @discocat9431 Před 3 lety

      If you are still making games. You didn't assign something in the inspector.

    • @dennispr5996
      @dennispr5996 Před 3 lety

      @@discocat9431 i did assigne everything checked multiple times but didnt work. I threw the game away and made my own terrain gen :)

    • @discocat9431
      @discocat9431 Před 3 lety

      @@dennispr5996 good to hear that. But how do you remember what you did 5 months ago. Guess not everyone has a memory of a fish like me.

    • @discocat9431
      @discocat9431 Před 3 lety

      @@dennispr5996 And what version of unity did you used. And just for research purpose how old are you? :>

    • @dennispr5996
      @dennispr5996 Před 3 lety

      @@discocat9431 i dont remember. But its fine

  • @poplibrothers5915
    @poplibrothers5915 Před 3 lety

    Hlo bro how do u move in game mode

    • @UGuruz
      @UGuruz  Před 3 lety +1

      I used this. First Person All-in-One : bit.ly/3firCel

  • @blitsty4521
    @blitsty4521 Před 3 lety

    how do i undo grass placement it mostly ruined my thing

    • @UGuruz
      @UGuruz  Před 3 lety

      You can hold Ctrl or Shit while painting to remove the grass.

  • @SomebodyPickaName
    @SomebodyPickaName Před 4 lety +3

    New UGuruz video = cant click fast enough! Insta-watch!!

  • @firstpeoplegovernment

    The tree colliders disappear.

    • @Gabi-tq9ij
      @Gabi-tq9ij Před rokem

      i have the same issue

    • @firstpeoplegovernment
      @firstpeoplegovernment Před rokem

      @@Gabi-tq9ij Yeah it happens with Unity terrain tool as well, you need CAPSULE collider on the trees then it works you can Mass place trees.

  • @rekindledphoenix
    @rekindledphoenix Před 3 lety

    HDRP grass is broken, suggestions?

    • @UGuruz
      @UGuruz  Před 3 lety

      You can use grass as a Tree object. For more info watch my Crysis Scene Breakdown video.

    • @rekindledphoenix
      @rekindledphoenix Před 3 lety

      @@UGuruz already tried that. The performance tanks with that many faux trees, thank you for the suggestion though. Is it just a known fact that Unity refuses to fix the grass in HDRP? It's 2020, been three years since release. What's taking so long?

  • @lifeofart3189
    @lifeofart3189 Před 2 lety +1

    Please bro give me your pc spasification please bro 🥺

    • @UGuruz
      @UGuruz  Před 2 lety

      Check description

  • @pokegotreasure
    @pokegotreasure Před 2 lety

    I'm a newb. I don't have anything. Guess i have to watch a different video

  • @edjackson2597
    @edjackson2597 Před 3 lety

    What's your system spec bruv!?

    • @UGuruz
      @UGuruz  Před 3 lety

      Core i9 9900K, 32GB Ram, GTX 1050 TI, 500GB SSD

  • @RudyWasAlibe
    @RudyWasAlibe Před rokem

    Sheeessssshhhhhhhhhhh

  • @consistency-is-all
    @consistency-is-all Před 4 lety

    𝔖𝔦𝔯 𝔠𝔞𝔫 𝔶𝔬𝔲 𝔭𝔩𝔢𝔞𝔰𝔢 𝔩𝔦𝔰𝔱 𝔬𝔲𝔱 𝔱𝔥𝔢 𝔫𝔞𝔪𝔢𝔰 𝔬𝔣 𝔣𝔯𝔢𝔢 𝔞𝔰𝔰𝔢𝔱𝔰 𝔱𝔥𝔞𝔱 𝔴𝔦𝔩𝔩 𝔟𝔢 𝔲𝔰𝔢𝔣𝔲𝔩 𝔣𝔬𝔯 𝔲𝔰...

    • @UGuruz
      @UGuruz  Před 4 lety +1

      Sure, Noted.

    • @consistency-is-all
      @consistency-is-all Před 4 lety +1

      @@UGuruz 𝔖𝔦𝔯 ℑ 𝔞𝔪 𝔶𝔬𝔲𝔯 𝔅𝔦𝔤 𝔣𝔞𝔫 💗...