How to Make a Stylized Tree by using Blender and Unity

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • 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

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

  • @Palerider1011
    @Palerider1011 3 года назад +39

    Great tutorial. I've watched a lot of these, you're the first that showed how to make LODs. Thanks, great job!

  • @thethirdkate
    @thethirdkate 2 года назад +6

    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!

  • @damianszymanski5301
    @damianszymanski5301 2 года назад +23

    For anyone who needs to know like I did, the resolution texture for the leaves that he used is 512 x 512

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

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

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

      @@ra3diantart651 he creates the texture in photoshop and imports that into unity

  • @Xavaltir
    @Xavaltir 3 года назад +10

    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 :)

  • @dominiklist8336
    @dominiklist8336 3 года назад +7

    One of the best videos I saw in a while!
    Thank you very much for your time and effort.

  • @AmallieGames
    @AmallieGames 3 года назад +16

    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.

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

      Did you improve it?

    • @Jake-pw9fw
      @Jake-pw9fw 2 года назад +1

      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.

  • @desertedislander
    @desertedislander 3 года назад +5

    I'm just getting started with playing around with unity and programming. I'm really happy to find helpful channels like yours. Stay awesome!

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

      Thank you! I'm so happy it could help you! I will keep update more useful videos!

  • @holgerchristensen4021
    @holgerchristensen4021 3 года назад +3

    Great work. I ended up making some pretty nifty trees after your tutorial.

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

    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!

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

      Thank you so much! I will make more useful videos in future!

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

    A very under utilized technique.
    Works great with toon shading.
    Keep up the great tutorials!

  • @GlassesAndCoffeeMugs
    @GlassesAndCoffeeMugs 2 года назад +5

    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

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

      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

    • @GlassesAndCoffeeMugs
      @GlassesAndCoffeeMugs 2 года назад +2

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

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

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

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

    Damn ! Sweet ! Finally someone make this kinda stylized tutorial. Thanks !

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

    the best stylized tree making tutorial i've ever seen

  • @coledanson6507
    @coledanson6507 3 года назад +3

    Wow, 42 minutes. Thanks a lot for this detailed tutorial! :)

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

    This is the only tutorial i could actually follow and get great results. Thank you!

  • @GilbertGames
    @GilbertGames 3 года назад +3

    Thank you!!! Even included lod tutorial amazing

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

    Thank you so much, this is the most straight forward tutorial for this I've seen. Just what I was looking for

  • @Obliviander
    @Obliviander 2 года назад +8

    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.

  • @Sober-MindedYT
    @Sober-MindedYT 2 года назад +1

    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👍

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

    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?

  • @manai2683
    @manai2683 2 года назад +2

    13:30 I think Convert is now Make Instances Real

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

    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.

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

      Hmmm, there is nothing special about the leaves, just using transform tools in photoshop and put them with some randomness.

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

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

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

    This is a beautiful result. Thank you for sharing :)

  • @7415_Gamer
    @7415_Gamer 3 года назад +2

    Good work and worth watching.

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

    Amazing work, really appreciate this tutorial. Have subscribed and looking forward to more content like this!

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

    you deserve more subscribers and views

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

    Thank you very much! I knew this was possible in Blender but I didn't know how. You have my thanks.

  • @Dezomm
    @Dezomm 3 года назад +3

    I learned a lot, thank you so much!

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

      I'm so happy this video could give you a little bit help!

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

    You are amazing, please keep making such awesome videos. Cannot thank you enough!

  • @adri325
    @adri325 2 года назад +5

    Could you share how to do the leaf shader using shader graph?, btw, good tutorial

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

    You are my Savior. Thanks a lot

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

    That is a great video, thank you LoBeyJon

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

    best tuto ever

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

    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?

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

    Very nicely explained. Thank you...

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

    👏👏I can't thank you enough. Awesome Video

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

    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?

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

    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 ?

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

    Amazing tutorial

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

    Super good video! So happy with my results :D TY!!

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

    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?

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

    Amazing tutorial! Thank you!

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

    Nice job

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

    Great Video! Thank's so much ! You have definitely earned a new subscriber! :)

  • @simon.in.motion
    @simon.in.motion 5 месяцев назад

    Amazing tutorial thanks !

  •  2 года назад

    Amazing tutorial mate!!

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

    Hey dude really good tutorial thank you

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

    I am very pleased, thanks my friend.

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

    how to make it work in urp? is it the same as for the shader code? I've tried but it turns purple

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

    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

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

    You help me a lot. Thank you so much.

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

    Really cool!!!

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

    can you plz provide source files, so we can check if we get stuck

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

    its so so easy thank you man

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

    now, this is epic

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

    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

  • @user-pt8qj6hd7c
    @user-pt8qj6hd7c Год назад

    Great tutorial!!

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

    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

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

      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 :)

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

    nice tutorial! but what's the BGM music called?

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

    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?

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

      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 :)

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

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

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

    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?

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

      Nevermind I followed the next video and it worked perfectly!

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

    I guess this method of transferring normals is broken in newer versions of blender? or am i missing something??? I've been trying to figure out normal transfering my entire life...........

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

    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?

  • @Mini-wd7qz
    @Mini-wd7qz 3 месяца назад

    Is laptop powerful enough or will it lag too much

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

    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

  • @seanpatrickkennedy
    @seanpatrickkennedy 3 года назад +3

    What size was your leaf texture? 512 x 512 or 256 x 256?

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

    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

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

      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.

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

    can you help me? when I drag the shader to the plant material they turn pink even doing everything the same as you did

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

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

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

      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 :)

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

      @@lobeyjongamedev676 Thanks for the solution !

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

    how I add this leafs falling from off tree?

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

    Hey to render in blender the normals doesn't works well, do you know why?

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

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

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

    Thx for video. But, one question:
    Why dont "join" (ctrl + j) all spheres into one and hang particles on it?

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

    it doesn't work :'( at the time of data transfer, there are black shadows, like artifacts. and the code for the shader in Unity, the rendering is completely Fushia, I don't understand where it's stuck, I redid everything like in the video.

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

    thank you

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

    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

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

    I have pink leaves. Does the leaf shader work with urp?

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

    does this work creating in maya aswell?

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

    Why do you make the sphere ? What’s for?? Thank you for your tutorial

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

      The sphere is used to modify the tree leaves' normal to get a smooth shadow

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

    I have a problem with the Shader, It tells me that SRP Batcher is not Compatible :c

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

    can you please upload your files, thanks for the video.

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

    thxs man

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

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

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

    Nice tutorial! Thanks! Let me ask.. How many faces on the final model? You think is a "light" model for game performance?

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

    Thanks bro, Why i choose Material for leaf - Blend mode to alpha clip - after that, i cannot see leaves ! Pls help

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

      Sr, my fault, i set ImageTextute Color node to alpha node Principle ^^. Thanks bro again

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

      Sounds great!

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

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

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

    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.

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

    I can't add the leaf texture and If I make the Standard Surface Shader everything looks purple, any help? I am using URP

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

    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

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

      Are you using HDRP or URP? HDRP need some other settings to avoid the sky black.

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

    LESGO THANKS A LOT

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

    awesome :)

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

    Hi Thank you ! Can we make this for the URP ? Is it the same or have we to do some changes ?

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

      There has a video implementing the trees in this video as well as leaf animation. You could find it in my channel :)

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

    can you share the leaf png you made?

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

    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?

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

      Sorry, would you please give more details about "the leaves are connected to the sphere"?

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

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

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

      @@forecastumbrella1626 You're right! I was overthinking too much on it. That felt like missing a semi-column. Thank you for pointing it out.

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

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

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

    Can you upload the leaf texture pls

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

    I followed the tutorial, it was going fine still I added the shader to the leaf material. When i added the shader, it turned pink, can you please help? I went through it again and I did everything correctly

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

      Hi, I need more details about your shader and your leaf textures, did you give a color to your leaf texture then give a color to the leaf material?

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

      @@lobeyjongamedev676 I got it working now, I had to create an simple lit shader, however the leaves are not casting a shadow but the trunk is. Does it have something to do with the shader graph?

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

      @@lobeyjongamedev676 I have fixed my issue haha. I don't know what happened but I remade the material and everything is working. I hope to see more tutorials from you!

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

      @@dwag0n Good to hear that! I will keep making more tutorials!

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

    Help editing the normals doesnt work for me, I followed it step by step xD

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

      in Data transfer Click Face corner Data and also click Custom normals ( i was missing last part)

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

    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?

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

    Is this URP? why mine is pink

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

      This tutorial is made in Unitys built-In render pipeline. Therefor the standart surface shader dont work in URP...

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

    Ahhhh my fps