Quickly Scatter Grass and Trees on Terrain in Unity

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

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

  • @lorenzo5679
    @lorenzo5679 4 года назад +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  4 года назад +1

      Wow, thanks!

    • @RavenArtzy
      @RavenArtzy 4 года назад +2

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

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

      ​@@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 7 месяцев назад

      wow! im 12 and i am already doing this easily

  • @digiacomtech5589
    @digiacomtech5589 3 года назад +9

    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  3 года назад +2

      Great.Thanks for the suggestions.

    • @Wohodix
      @Wohodix 3 года назад

      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 3 года назад

      @@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 4 года назад +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 4 года назад +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 4 года назад +2

      Very good and most important topic in level design.

    • @vklymenko
      @vklymenko 4 года назад +1

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

    • @N1ghtR1der666
      @N1ghtR1der666 4 года назад +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 4 года назад +3

      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 Год назад +1

    this absolute unity gangster!

  • @augustoantenucci4725
    @augustoantenucci4725 4 года назад +18

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

  • @GymCritical
    @GymCritical 4 года назад +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 4 года назад

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

  • @unitylearnerboy2696
    @unitylearnerboy2696 4 года назад +1

    Very useful video 👍

    • @UGuruz
      @UGuruz  4 года назад +1

      Thanks a lot

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

    Really good!! Thanks!

  • @haachamachama7
    @haachamachama7 2 года назад

    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.

  • @8b5v
    @8b5v 4 года назад +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  4 года назад +1

      I used this tool. bit.ly/3firCel

    • @8b5v
      @8b5v 4 года назад +2

      @@UGuruz thanks, sensei :)

  • @sadafnoor5569
    @sadafnoor5569 2 года назад

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

  • @abhilashkumar3116
    @abhilashkumar3116 4 года назад +1

    Nice bro keep going ❣️

    • @UGuruz
      @UGuruz  4 года назад

      Thanks 🔥

  • @vincentwolfgramm-russell7263
    @vincentwolfgramm-russell7263 4 года назад

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

    • @UGuruz
      @UGuruz  4 года назад

      You're very welcome!

  • @HeathClose
    @HeathClose 4 года назад

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

    • @UGuruz
      @UGuruz  4 года назад

      You're welcome 🙂

  • @PlayerOne360
    @PlayerOne360 4 года назад

    Thanks for this helpful tutorial

    • @UGuruz
      @UGuruz  4 года назад

      You're welcome

  • @GaryMcKinnonUFO
    @GaryMcKinnonUFO 2 года назад

    Cool tool, thanks for sharing kind sir :)

  • @semihcetin3958
    @semihcetin3958 3 года назад

    Well just subscribed well done!

  • @omkarvitukade3263
    @omkarvitukade3263 4 года назад

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

    • @UGuruz
      @UGuruz  4 года назад

      Thank you so much 😀

  • @TJ-tu5xc
    @TJ-tu5xc 3 года назад

    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  3 года назад

      Thanks for the info.

  • @brosoftproducts
    @brosoftproducts 4 года назад

    Enjoyed the tutorial, really nice one

    • @UGuruz
      @UGuruz  4 года назад

      Thank you! Cheers!

  • @rockittt
    @rockittt 3 года назад +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 3 года назад

      Same here, did you found out a solution ?

  • @magicovergravityproduction1984
    @magicovergravityproduction1984 4 года назад

    Thanks for the tutorial!

    • @UGuruz
      @UGuruz  4 года назад

      Happy to help!

  • @tiagoandrade605
    @tiagoandrade605 3 года назад

    GOOD STUFF!!!!! Thanks a lot!

    • @UGuruz
      @UGuruz  3 года назад

      You're welcome!

  • @issdar
    @issdar 4 года назад

    Great video, thanks for the tutorial!

    • @UGuruz
      @UGuruz  4 года назад

      Glad it was helpful!

  • @GlitcgyGamer
    @GlitcgyGamer 3 года назад

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

    • @UGuruz
      @UGuruz  3 года назад

      You are welcome

  • @jso19801980
    @jso19801980 4 года назад +3

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

  • @chillcarrier
    @chillcarrier 4 года назад +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.

    • @UGuruz
      @UGuruz  4 года назад +1

      I will try that.

    • @chillcarrier
      @chillcarrier 4 года назад

      @@UGuruz thank you.

  • @Awlorein
    @Awlorein 2 года назад

    You're fantastic.

  • @rijiyu6745
    @rijiyu6745 2 года назад +1

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

    • @WizardReel
      @WizardReel 2 года назад

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

  • @kksethi02
    @kksethi02 4 года назад

    Good one! Keep it up.

    • @UGuruz
      @UGuruz  4 года назад

      Kya baat h..😀

  • @alejandroperez4664
    @alejandroperez4664 4 года назад +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  4 года назад +1

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

  • @BodycamTM
    @BodycamTM 4 года назад +2

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

  • @markgianturco5677
    @markgianturco5677 3 года назад

    very helpful, thanks.

    • @UGuruz
      @UGuruz  3 года назад

      Glad it was helpful!

  • @kallezter9301
    @kallezter9301 3 года назад +1

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

  • @THETCDCStudios
    @THETCDCStudios 3 года назад +1

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

  • @ricardojaviergarnicapena6749
    @ricardojaviergarnicapena6749 3 года назад +2

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

    • @UGuruz
      @UGuruz  3 года назад +2

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

    • @kikeluzi
      @kikeluzi 3 года назад

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

    • @ricardojaviergarnicapena6749
      @ricardojaviergarnicapena6749 3 года назад +1

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

    • @kikeluzi
      @kikeluzi 3 года назад +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)

  • @3Dpolygon
    @3Dpolygon 4 года назад

    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  4 года назад

      For that you can use screen recorder software like OBS.

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

    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

  • @tablettablet4792
    @tablettablet4792 2 года назад

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

  • @BruceT-rg8bp
    @BruceT-rg8bp Год назад

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

  • @kraxti4795
    @kraxti4795 2 года назад +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 :/

  • @balaganesh808
    @balaganesh808 2 года назад

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

  • @Gabs_jla
    @Gabs_jla 2 года назад

    Thank you so much

  • @Cthulhu013
    @Cthulhu013 3 года назад

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

  • @piyushdhariwal5398
    @piyushdhariwal5398 3 года назад

    can we placed diffrent types of trees at the same time

  • @Internet_Enjoyer
    @Internet_Enjoyer 2 года назад

    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.

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

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

  • @jredden1047
    @jredden1047 3 года назад

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

  • @IDeias-gy1jx
    @IDeias-gy1jx 4 года назад

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

  • @akbarhaironi4512
    @akbarhaironi4512 4 года назад +1

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

  • @samevans515
    @samevans515 4 года назад +2

    Is this done with HDRP enabled?

  • @tastimiku5158
    @tastimiku5158 3 года назад

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

  • @et1965
    @et1965 4 года назад +2

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

  • @ricardojaviergarnicapena6749
    @ricardojaviergarnicapena6749 2 года назад

    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.

  • @planebreach
    @planebreach 3 года назад

    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 ?

  • @wikeurr
    @wikeurr 3 года назад

    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  3 года назад +1

      I used cinemachine and Timeline for that.

  • @Chandan-xz8cd
    @Chandan-xz8cd 4 года назад

    Thanks man

    • @UGuruz
      @UGuruz  4 года назад

      You're welcome!

  • @ruth5892
    @ruth5892 4 года назад

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

  • @HistGeoFacts
    @HistGeoFacts 4 года назад

    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  4 года назад

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

    • @HistGeoFacts
      @HistGeoFacts 4 года назад

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

  • @madryan2093
    @madryan2093 3 года назад

    what computer or pc are you using

    • @UGuruz
      @UGuruz  3 года назад

      check description.

  • @candykiss4584
    @candykiss4584 3 года назад

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

  • @nerffighters5225
    @nerffighters5225 4 года назад

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

  • @shaikhabdulbasit5717
    @shaikhabdulbasit5717 2 года назад

    Does this works with urp?

  • @lukasin9351
    @lukasin9351 3 года назад

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

  • @nabanitadebnath9394
    @nabanitadebnath9394 4 года назад

    Which graphic card do we neeed for this terrain

    • @UGuruz
      @UGuruz  4 года назад

      At least GTX 1660 minimum.

  • @أيزىتيم
    @أيزىتيم 3 года назад

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

  • @markegan2570
    @markegan2570 3 года назад

    Can it spawn other objects such as rocks?

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

    The tree colliders disappear.

    • @Gabi-tq9ij
      @Gabi-tq9ij Год назад

      i have the same issue

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

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

  • @ashdev
    @ashdev 4 года назад

    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  4 года назад

      Try Unity 2018.3.

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

    can this work for URP?

  • @divyanshporwal9720
    @divyanshporwal9720 3 года назад

    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  3 года назад

      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.

  • @danlee7923
    @danlee7923 4 года назад +1

    Is this URP or HDRP?

    • @UGuruz
      @UGuruz  4 года назад +1

      It's Built In Renderer.

  • @N1ghtR1der666
    @N1ghtR1der666 4 года назад

    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  4 года назад

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

    • @N1ghtR1der666
      @N1ghtR1der666 4 года назад

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

    • @UGuruz
      @UGuruz  4 года назад

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

  • @QuietStudiosOfficial
    @QuietStudiosOfficial 3 года назад

    why can you pass through the trees?

  • @AvitheTiger
    @AvitheTiger 4 года назад

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

    • @UGuruz
      @UGuruz  4 года назад +1

      I don't think you can do that.

    • @AvitheTiger
      @AvitheTiger 4 года назад

      @@UGuruz oh ok. Thank you anyways

  • @cyberneticstudio8736
    @cyberneticstudio8736 3 года назад

    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.

  • @apex090
    @apex090 4 года назад

    plzz make a frozen forest terrain ❤️❤️

  • @dennispr5996
    @dennispr5996 3 года назад

    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 3 года назад

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

    • @dennispr5996
      @dennispr5996 3 года назад

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

    • @discocat9431
      @discocat9431 3 года назад

      @@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 3 года назад

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

    • @dennispr5996
      @dennispr5996 3 года назад

      @@discocat9431 i dont remember. But its fine

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

    i love it

  • @popbat
    @popbat 3 года назад

    I click add terrain and nothing happens.

  • @RavenArtzy
    @RavenArtzy 4 года назад

    Why can i go pass through trees?

  • @RudyWasAlibe
    @RudyWasAlibe 2 года назад

    I cant see vegetation spawnner script

  • @rekindledphoenix
    @rekindledphoenix 4 года назад

    HDRP grass is broken, suggestions?

    • @UGuruz
      @UGuruz  4 года назад

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

    • @rekindledphoenix
      @rekindledphoenix 4 года назад

      @@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?

  • @weardrill
    @weardrill 4 года назад +1

    nice

    • @UGuruz
      @UGuruz  4 года назад +1

      Thanks

  • @mamtapatil1892
    @mamtapatil1892 2 года назад

    error cs0104 came when i downloaded flooded pack

  • @XxCasualGamerxX
    @XxCasualGamerxX 3 года назад

    it spawns floating trees for me

  • @blitsty4521
    @blitsty4521 4 года назад

    how do i undo grass placement it mostly ruined my thing

    • @UGuruz
      @UGuruz  4 года назад

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

  • @poplibrothers5915
    @poplibrothers5915 4 года назад

    Hlo bro how do u move in game mode

    • @UGuruz
      @UGuruz  4 года назад +1

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

  • @abu4077
    @abu4077 3 года назад

    thanks

  • @kikeluzi
    @kikeluzi 3 года назад

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

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

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

  • @Oceans24misson
    @Oceans24misson 3 года назад

    its making the plants ike 2d images

  • @mrmicky2372
    @mrmicky2372 4 года назад

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

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

    How download project

  • @edjackson2597
    @edjackson2597 4 года назад

    What's your system spec bruv!?

    • @UGuruz
      @UGuruz  4 года назад

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

  • @lifeofart3189
    @lifeofart3189 3 года назад +1

    Please bro give me your pc spasification please bro 🥺

    • @UGuruz
      @UGuruz  3 года назад

      Check description

  • @SomebodyPickaName
    @SomebodyPickaName 4 года назад +3

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

  • @craft9936
    @craft9936 3 года назад

    Is increible

  • @pokegotreasure
    @pokegotreasure 3 года назад

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

  • @ldsr3181
    @ldsr3181 4 года назад +1

    Ecxellent

    • @UGuruz
      @UGuruz  4 года назад +1

      Thanks