How to Make a Stylized Tree by using Blender and Unity
Вставка
- Опубліковано 19 лют 2021
- Welcome to join my Patrons with some other benefits. Buy me a coffee if this video could give you a little bit help, your support will give me more power to make more good videos! Thanks!
/ gamedevlobeyjon
Another video about improving smoothness of the leaf branch shadow: • How to make the tree l...
Tools used in this tutorial:
Blender v2.83
Unity 2019.4 (LTS)
PhotoShop 2019 - Ігри
At first I was daunted by the length of the video but it's actually a great pace to follow along without having to keep pausing. Thanks!
A very under utilized technique.
Works great with toon shading.
Keep up the great tutorials!
For anyone who needs to know like I did, the resolution texture for the leaves that he used is 512 x 512
I can't figure out how to get my leaf texture from Blender to Unity, he skipped that step and I mess up my tree file trying to figure it out by following a different tutorial video on baking textures. So now I have to make a new tree from scratch and probably follow this tutorial all over again...wish he included that step for us beginners....
@@ra3diantart651 he creates the texture in photoshop and imports that into unity
Great tutorial. I've watched a lot of these, you're the first that showed how to make LODs. Thanks, great job!
Thank you!
@@lobeyjongamedev676 Sir...Can we get this same result in Autodesk Maya ?
One of the best videos I saw in a while!
Thank you very much for your time and effort.
Thank you!
Fast & Simple tip for the tree trunk LOD, use the decimate modifier and it'll do the work for you, but be carefull that you dont set the value too low or you are gonna get some crazy looking trunks :)
This is the only tutorial i could actually follow and get great results. Thank you!
the best stylized tree making tutorial i've ever seen
Thank you so much, this is the most straight forward tutorial for this I've seen. Just what I was looking for
This is a beautiful result. Thank you for sharing :)
Thank you very much! I knew this was possible in Blender but I didn't know how. You have my thanks.
Amazing work, really appreciate this tutorial. Have subscribed and looking forward to more content like this!
You are amazing, please keep making such awesome videos. Cannot thank you enough!
Wow, 42 minutes. Thanks a lot for this detailed tutorial! :)
I'm just getting started with playing around with unity and programming. I'm really happy to find helpful channels like yours. Stay awesome!
Thank you! I'm so happy it could help you! I will keep update more useful videos!
Great work. I ended up making some pretty nifty trees after your tutorial.
Great!
13:30 I think Convert is now Make Instances Real
thank you so much! this was very helpful, I changed the material for Lit, to work with the URP, as you did in the animation tutorial, and works great!
Thank you so much! I will make more useful videos in future!
Very nicely explained. Thank you...
Good work and worth watching.
That is a great video, thank you LoBeyJon
Damn ! Sweet ! Finally someone make this kinda stylized tutorial. Thanks !
Thank you! I'm really happy to hear that!
👏👏I can't thank you enough. Awesome Video
Amazing tutorial! Thank you!
Amazing tutorial mate!!
Super good video! So happy with my results :D TY!!
I would love a part 2 on doing an adjustable shader to add movement to the leaves as if there is wind. I've been attempting this but kind of struggle with shaders still.
Did you improve it?
I know this is old but a good way to do this would be with a vertex displacement shader. Use some kind of noise to move the x/y vertexes of the leaves.
Amazing tutorial thanks !
I learned a lot, thank you so much!
I'm so happy this video could give you a little bit help!
I am very pleased, thanks my friend.
You help me a lot. Thank you so much.
Thank you!!! Even included lod tutorial amazing
Glad you like it!
Really cool!!!
Amazing tutorial
Thank you for like it!
Hey dude really good tutorial thank you
its so so easy thank you man
Great Video! Thank's so much ! You have definitely earned a new subscriber! :)
Great tutorial!!
Nice job
Thank you!
Fantastic video tutorial, I only wish there was more detail on how you went about making the leaf texture, if there is even any specific way in which you did it.
Hmmm, there is nothing special about the leaves, just using transform tools in photoshop and put them with some randomness.
@@lobeyjongamedev676 Ah ok, It's just an odd bit that ive seen omitted in a few videos now for alphas, and I was unsure of how to necessarily go about it. Thank you though.
For anyone that can't set the blend mode to alpha clip, it's because you are in cycles render engine, set it to Evee and it should work. I was so confused, figured it out after struggling for 10min. Hope it can help someone out there.
Wow man that's awesome!!! I'm using blender for 1 year and know a lot already, but your tutorials are perfect even for absolute beginners. Thanks👍
My pleasure!
I've been messing with my tree LOD, tried to render branches on one image but nothing seemed to work, magical words of particle number divide by 5, hair length multiply by 2 saved me, thx :D
best tuto ever
Thank you so much!
now, this is epic
thank you
If you're having issues with Alpha clip, make sure to HIDE the spheres so only the leaf mesh is showing. Otherwise it will look like the alpha doesn't work
This is something that is surprisingly hard to find. Should the alpha map be white and black, with the black being the transparent parts? Or should I delete the transparent parts completely via a png file?
Thank you for any help
@@nickhasselbach5778 I found a leaf texture, added an alpha channel, and removed the background. So no messing with black or white, simply having a transparent background should be enough.
@@GlassesAndCoffeeMugs
would you by any chance be able to send me a copy of the blender file of the tree? there is some setting or something that is off. The leaves disappear completely when I set the blend mode to alpha clip.
You are my Savior. Thanks a lot
Could you share how to do the leaf shader using shader graph?, btw, good tutorial
you deserve more subscribers and views
Thank you so much!
thxs man
awesome :)
GREAT lecture , thank you , i have a question, is it possible to use the same procedure for any object or material in unity ? like basically make a environment with this shader?
thanks for the great tutorial, My URP Shader animated leave mesh is moving away when moving the Global of Tree, please let me know if anyone found this issue.
Hi thanks for the great video! Im trying to add my wind shader from shader graph to the leaves but doesnt have any effect, any ideas?
I have unity version 2021.3.5f 1 and after adding a shader on the leaf material, the leaves become like a texture and at the same time remain plain, also I can't change the color. Maybe because the shader dropdown doesn't have what you have. Is there a solution to this problem?
subscribed and liked, please keep making more tutorials! Also a question: is there any specific reason why you used built in render pipeline instead of URP?
Thanks! I will try my best to make more useful tutorials! There is no reason... I will try to use URP to make shader tutorials in future because write code maybe painful for some guys :)
@@lobeyjongamedev676 I see, makes sense thanks for replying! I was just curious, I shifted to built in pipeline from URP recently due to lack of documentation especially for writing custom shaders.
nice tutorial! but what's the BGM music called?
LESGO THANKS A LOT
Appologises if this is a dumb question, but I cannot figure out how you are exporting the leaf texture into Unity? I tried just opening the image into the texture folder but it just shows as an image and its no longer transparent, the transparency turns black inside Unity. Does it have to be export from Blender?
do you know why some branches of the tree wont get affected by the curve resolution?
just wondering - also because it really would waste some vertecies you really dont need...
Nice tutorial! Thanks! Let me ask.. How many faces on the final model? You think is a "light" model for game performance?
Of course it is with right LOD group.
How do you change your mouse yellow color when you sculpting ? Yours is attached to the object but Mine is green and detached to the object
Thx for video. But, one question:
Why dont "join" (ctrl + j) all spheres into one and hang particles on it?
Grear Tutorial.
I'm struggling with the standard surface shader script. Followed that part of the video 3 times. My tree is purple and I can't find my mistake. It looks exactly like the one in the video. The error is Shader error in 'Leaf': Parse error; syntax error, unexpected TOK_COLOR, expecting'{' at line 5. Can you maybe help
how about game performance with this trees say like 100 of them in a single scene. Is this method optimized to be used in games?
how to make it work in urp? is it the same as for the shader code? I've tried but it turns purple
To anyone hving problem with alpha texture for leaves:
Basically just make leaf shape with transparent background (not black color but TRANSPARENT (no background color)- ensure this. I ran through free transparent alpha texture online but when i open it in ps, its not really transparent. The transparency is not transparent idk how to explain it but anyway double check!!
how I add this leafs falling from off tree?
I made the tree in blender. Just like you did the export process. When I export it to the Unity engine, black overlays appear on the frame of the leaves. How can I fix the appearance of the leaves. Can you help ?
can you please upload your files, thanks for the video.
Why do you make the sphere ? What’s for?? Thank you for your tutorial
The sphere is used to modify the tree leaves' normal to get a smooth shadow
Great Tutorial :)
I have pink leaves. Does the leaf shader work with urp?
Hi Thank you ! Can we make this for the URP ? Is it the same or have we to do some changes ?
There has a video implementing the trees in this video as well as leaf animation. You could find it in my channel :)
can you plz provide source files, so we can check if we get stuck
11:19 whenever I click on my model and try to drag it to the one that already has a system it doesnt work. I simply select it. I cant google it because I dont know if this is an existing problem and if so what its called
Hi, I'm not sure whether you are copying the Particle Settings from one object to another? If so, there are no "drag" operation, the steps in Blender 2.83 should be:
1. Select the destination object you want copy Particle Settings to;
2. Press Shift, then select the source object which you want copy Particle Settings from;
3. Use "Copy Active to Selected Objects" in video to copy settings;
4. Click "Make a Single User Copy" to break the link of Particle Settings between above two objects.
what pipeline did you use?
i use unity 2021 with urp.im following the tutorial but when i use the shader, the material become purple. do you know how to fix it?
great tutorial
Unity 2020.3.10 with URP 10.5.1.
There should has shader errors if the material is purple, maybe I can figure out what happened on your side if you send me the error :)
can you share the leaf png you made?
Hey to render in blender the normals doesn't works well, do you know why?
Great tutorial! But I'm having this problem where the skybox is partially black. I copied your values still it isn't matching yours. The ground's fine but instead of the sky being blue, it's black. Can you help me out please
Are you using HDRP or URP? HDRP need some other settings to avoid the sky black.
can you help me? when I drag the shader to the plant material they turn pink even doing everything the same as you did
Can you upload the leaf texture pls
Hi LoBeyJon ! Thank you for this tutorial ! I wanted to know, Standard Surface Shader doesn't work anymore with URP ? Because the shader leaf you did turns pink for me...
Hi, I'm not sure if you want to transfer this shader to HLSL shader or just shader graph in URP. In my another video about how to make leaf animation in URP will show you the steps about how to transfer this surf shader to URP shader graph. Hope it could help you :)
@@lobeyjongamedev676 Thanks for the solution !
Muy bueno
does this work creating in maya aswell?
I have a problem with the Shader, It tells me that SRP Batcher is not Compatible :c
can someone explain what he did with leaves? why when exported as png they are white, but in photoshop he drawed them with green color ( i am complete idiot when something is related to photoshop) i don't even know if i asked correctly XD!
(EDIT) dont know what, how , and why? but i made my leaves work.....
What size was your leaf texture? 512 x 512 or 256 x 256?
512x512
I have two questions, hope someone can answer quickly.
1- Are these trees performance heavy? I want to use 20-25 of them in my scene, do they cause a big fps drop?
2- Is there anyway i can download the fbx file?
No they are not performance heavy
17:50 Someone can tell me how to do this in 3ds max?
For some reason I can't see any post processing at all, I'm trying to do this on URP. Any idea what's wrong?
Nevermind I followed the next video and it worked perfectly!
how do you import the leaf material into unity?
Thank you for motivating me! So kind of you!
Sigh. I've tried baking the texture, dragging and dropping the png file in all kinds of ways to try to get the leaf texture in Unity and I just cannot figure out how your leaf texture is just in there. I imported the tree exactly how you did it in the video. It just doesn't make any sense why I'm not getting the texture in here
Is this URP? why mine is pink
I can't add the leaf texture and If I make the Standard Surface Shader everything looks purple, any help? I am using URP
have you found a solution to this problem ?
Thanks bro, Why i choose Material for leaf - Blend mode to alpha clip - after that, i cannot see leaves ! Pls help
Sr, my fault, i set ImageTextute Color node to alpha node Principle ^^. Thanks bro again
Sounds great!
hey, could you tell me how you made the texture? I simply can not figure out how to get the alpha to work, despite following the video step by step. i have tried with transparent background and white leaves, transparent background and green leaves, white background and green leaves...
Is laptop powerful enough or will it lag too much
Your tutorial was very helpful! But after following the steps, the spheres still shows like it shows that the leaves are connected to the sphere. Could you please help me out?
Sorry, would you please give more details about "the leaves are connected to the sphere"?
@@lobeyjongamedev676 Yes, sure. For the particle properties of the sphere, I set the emission to 15 so when the leaves were attached, the sphere is still visible and peeking out. But after following the rest of the steps, the sphere is still visible. Did I miss a step?
@@forecastumbrella1626 You're right! I was overthinking too much on it. That felt like missing a semi-column. Thank you for pointing it out.
Which skybox are you using?
Hi! The skybox is just a procedural skybox material.