Quickly Scatter Grass and Trees on Terrain in Unity
Let's learn how to quickly and easily scatter vegetation on terrain in Unity.
✅Terrain in Unity 2020 | Beginner Tutorial : • How to Make Beautiful ...
✅ Terrain with URP in Unity 2020 | Beginner Tutorial : • How to Use Terrain wit...
✅A Beginner's Dev Vlog Channel :- bit.ly/2FAi5mW
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
☑️[Unity Asset Store links(Affiliate)]
✅Vegetation Spawner : bit.ly/3bXpsAW
✅Flooded Grounds : bit.ly/2ZfAxIT
✅Outdoor Ground Textures : bit.ly/306eljm
✅Trees Conifers [BOTD] : bit.ly/3h6xXel
✅Grass Flower Pack Free : bit.ly/30cbmWS
✅First Person All-in-One : bit.ly/3firCel
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
☑️Quick Links :☑️
Introduction - 00:00
Importing Vegetation Spawner 00:08
Setup Vegetation Spawner 00:55
Scattering Trees 01:35
Scattering Grass 05:30
Tree tools 09:04
Final Result 09:28
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✅PC Configuration
CPU : INTEL i9 9900K
GPU : NVIDIA GTX 1050TI
MOBO : ASUS ROG Maximus XI Hero
RAM : 32 GB 3200MHZ
SSD: Samsung 500 GB
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💎 Watch advanced tutorial on Patreon 💎
/ uguruz
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
📱Social Links:📱
🔸 Discord / discord
🔸 Twitter: / u_guruz
🔸 Facebook: / uguruzyt
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✅URP Tutorial Series
bit.ly/2TRZnv9
✅HDRP Tutorial Series
bit.ly/2G73caJ
✅Lighting and Post Processing Series
bit.ly/2TS0x9Z
✅Shader Graph Series
bit.ly/2Xe2AaE
✅Unity Graphics Demo
bit.ly/2XfSRAG
✅ Unity Beginner 3D Game Tutorial Series
bit.ly/2ZNTjaY
Пікірлер: 183
this absolute unity gangster!
thank you so much for sharing your knowledge with us God bless you
Thank you for your videos! They are all very helpful!
@UGuruz
3 жыл бұрын
You're very welcome!
Can you please make a tutorial on how to upgrade forest environment dynamic nature to HDRP ? Thank You
This guy makes it so easy I bet a 12 year old could do this! Really nice job on explaining how things work.
@UGuruz
3 жыл бұрын
Wow, thanks!
@RavenArtzy
3 жыл бұрын
Im 11 and i already know how to add pbr materials to terrain and create my own tree.
@lighthousestudio15
18 күн бұрын
@@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 😅😅
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.
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
3 жыл бұрын
For that you can use screen recorder software like OBS.
Great video, thanks for the tutorial!
@UGuruz
3 жыл бұрын
Glad it was helpful!
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
3 жыл бұрын
Great.Thanks for the suggestions.
@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
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 ;)
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 :/
Thanks for the tutorial!
@UGuruz
3 жыл бұрын
Happy to help!
How did you get so many grass meshes in the same area? Did you turn down the patch resolution to 8 or something?
Enjoyed the tutorial, really nice one
@UGuruz
3 жыл бұрын
Thank you! Cheers!
Awesome... I'll be using this for sure
@UGuruz
3 жыл бұрын
You're welcome 🙂
Thank you so much
Thanks for this helpful tutorial
@UGuruz
3 жыл бұрын
You're welcome
You're fantastic.
Cool tool, thanks for sharing kind sir :)
Would this also work in unison with a system designed to chop these trees down?
Well just subscribed well done!
@UGuruz
2 жыл бұрын
Thanks
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
3 жыл бұрын
I've been meaning to make a tutorial on that! Optimization is one of the most overlooked yet important mechanics in any project.
@smrutiization
3 жыл бұрын
Very good and most important topic in level design.
@vklymenko
3 жыл бұрын
I guess we need to wait for ECS support for these assets to have 10x better performance
@N1ghtR1der666
3 жыл бұрын
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
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
GOOD STUFF!!!!! Thanks a lot!
@UGuruz
3 жыл бұрын
You're welcome!
Can you use this with the vegetation engine.whitout inflicting problems. I think the scatering is great
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
3 жыл бұрын
No, there are lot of free and paid assets are available on Unity Asset Store.
Hello, for some reason the trees work well but the grass prefab shader turns to the default grey using hdrp
Thank you so much for this tool sir...it helps me a lot.
@UGuruz
3 жыл бұрын
You are welcome
I liked it soo much brother 😍😍keep it up...
@UGuruz
3 жыл бұрын
Thank you so much 😀
Good one! Keep it up.
@UGuruz
3 жыл бұрын
Kya baat h..😀
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???
Is the Unity software free? Do I need to buy any addons in order to start creating level design? Thanks
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.
Thanks for sharing bro, please give me tutorial to make road with easyroad
very helpful, thanks.
@UGuruz
2 жыл бұрын
Glad it was helpful!
can we placed diffrent types of trees at the same time
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
3 жыл бұрын
I will try that.
@chillcarrier
3 жыл бұрын
@@UGuruz thank you.
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
Does someone know a program or blender addon used to create trees, bushes and grass?
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.
Thanks man
@UGuruz
3 жыл бұрын
You're welcome!
Nice bro keep going ❣️
@UGuruz
3 жыл бұрын
Thanks 🔥
i love it
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
3 жыл бұрын
Afaik, the advanced terrain tool auto meshes it based on camera distance, at least it did for me
sir.... how did you make a demo video in starting and ending
Very useful video 👍
@UGuruz
3 жыл бұрын
Thanks a lot
When i add first person all in one my trees are changing colors,is there any fix?
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
2 жыл бұрын
Same here, did you found out a solution ?
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
2 жыл бұрын
I used cinemachine and Timeline for that.
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 ?
thanks
@UGuruz
2 жыл бұрын
Welcome
Does this works with urp?
icant find detail on my terrain setting,can you help me?
Amazing video. Is it possible to use a terrain created in Blender? Thank you, again your video was amazing.
@UGuruz
2 жыл бұрын
You can export height of your terrain from blender and then use that map on Unity terrain.
@kikeluzi
2 жыл бұрын
I did it importing the model to Unity and converting into Terrain! :D
@ricardojaviergarnicapena6749
2 жыл бұрын
@@kikeluzi Thank you. If you don't mind, could you tell me how you did it?
@kikeluzi
2 жыл бұрын
@@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)
hi can help to how make mask map in ps or other prog
Is increible
When i try to add the trees, it doesnt work? i have tried everything?
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
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.
can this work for URP?
You can teach how to optimize this because so much grass must be heavy please i really nerd.
This seems to break my terrain textures because I am using Microsplat. :(
Bhai yarr pubg ka alternative banao na! Keep it up bro!🔥🔥🔥😘😘😘
Can you make a video of how to make cave and waterfall?
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
3 жыл бұрын
I already have a tutorial about that. Check my video about "Making of Car Render Demo"
@HistGeoFacts
3 жыл бұрын
@@UGuruz wow awesome bro !! Thanks a lot !!!
what computer or pc are you using
@UGuruz
3 жыл бұрын
check description.
nice
@UGuruz
3 жыл бұрын
Thanks
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
2 жыл бұрын
Thanks for the info.
I have a problem. with many tree packs the trees have no colisin
can you show us how to walk on our project like what you did here 8:50 in first-person & third a person?
@UGuruz
3 жыл бұрын
I used this tool. bit.ly/3firCel
@CelestiaRosa
3 жыл бұрын
@@UGuruz thanks, sensei :)
Which graphic card do we neeed for this terrain
@UGuruz
3 жыл бұрын
At least GTX 1660 minimum.
Is this done with HDRP enabled?
@UGuruz
3 жыл бұрын
No
Can it spawn other objects such as rocks?
@UGuruz
3 жыл бұрын
Yes
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
3 жыл бұрын
No, Unity grass does not support shadows. For the wind noise you need to make your own shader.
@N1ghtR1der666
3 жыл бұрын
@@UGuruz Yeah I will give that a try, does the 3d (not billboard) grass like you used in the video get shadows?
@UGuruz
3 жыл бұрын
No, but if you scatter the grass as tree then it will have shadows. But it will highly affect your game performance.
How do I save all the trees/grass to a single mesh to reduce CPU/GPU usage?
@UGuruz
3 жыл бұрын
I don't think you can do that.
@AvitheTiger
3 жыл бұрын
@@UGuruz oh ok. Thank you anyways
Why I can not find the "Vegetation Spawner" and can not add "Vegetation Spawner" when I click "Add component"? Thanks
@WizardReel
2 жыл бұрын
After I installed Vegetation Spawner" , it shows up in Unity for me as "Spawn"
Ecxellent
@UGuruz
3 жыл бұрын
Thanks
we need a car racing game tutorial. plzz bhai banado video
i clicked on add active terrains nothing happens and it show nothing
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.
@thesixstistari5604
2 жыл бұрын
Yeah same I have that problem too pls help
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
3 жыл бұрын
Try Unity 2018.3.
Hlo bro how do u move in game mode
@UGuruz
3 жыл бұрын
I used this. First Person All-in-One : bit.ly/3firCel
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
2 жыл бұрын
If you are still making games. You didn't assign something in the inspector.
@dennispr5996
2 жыл бұрын
@@discocat9431 i did assigne everything checked multiple times but didnt work. I threw the game away and made my own terrain gen :)
@discocat9431
2 жыл бұрын
@@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
2 жыл бұрын
@@dennispr5996 And what version of unity did you used. And just for research purpose how old are you? :>
@dennispr5996
2 жыл бұрын
@@discocat9431 i dont remember. But its fine
How download project
Awesome asset :v just too heavy for generate things at each change...
it says this when i add the script "vegetation already placed on terrain will be cleard"
@UGuruz
3 жыл бұрын
Yes it will. So use it carefully.
@tr0nic_442
3 жыл бұрын
@@UGuruz it doesn't let me use it because of this error How am i supposed to use it carefully
@UGuruz
3 жыл бұрын
Try using this script on a fresh new terrain. If the problem is still there then contact the developer on Unity Asset Store.
For some reason i dont get any grass at all :(
error cs0104 came when i downloaded flooded pack
Is this URP or HDRP?
@UGuruz
3 жыл бұрын
It's Built In Renderer.
Why can i go pass through trees?
its making the plants ike 2d images
why can you pass through the trees?
it spawns floating trees for me
I cant see vegetation spawnner script
how do i undo grass placement it mostly ruined my thing
@UGuruz
3 жыл бұрын
You can hold Ctrl or Shit while painting to remove the grass.
I click add terrain and nothing happens.
Sheeessssshhhhhhhhhhh
New UGuruz video = cant click fast enough! Insta-watch!!
HDRP grass is broken, suggestions?
@UGuruz
3 жыл бұрын
You can use grass as a Tree object. For more info watch my Crysis Scene Breakdown video.
@rekindledphoenix
3 жыл бұрын
@@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?
What's your system spec bruv!?
@UGuruz
3 жыл бұрын
Core i9 9900K, 32GB Ram, GTX 1050 TI, 500GB SSD
Please bro give me your pc spasification please bro 🥺
@UGuruz
2 жыл бұрын
Check description
The tree colliders disappear.
@Gabi-tq9ij
Жыл бұрын
i have the same issue
@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.
I'm a newb. I don't have anything. Guess i have to watch a different video