Creating Procedural Trees in the Godot Engine with Tree3D

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ •

  • @gamefromscratch
    @gamefromscratch  5 місяців тому +2

    Links
    gamefromscratch.com/tree3d-procedural-tree-add-on-for-godot/
    -----------------------------------------------------------------------------------------------------------
    *Support* : www.patreon.com/gamefromscratch
    *GameDev News* : gamefromscratch.com
    *GameDev Tutorials* : devga.me
    *Discord* : discord.com/invite/R7tUVbD
    *Twitter* : twitter.com/gamefromscratch
    -----------------------------------------------------------------------------------------------------------

  • @kaya_stu
    @kaya_stu 5 місяців тому +60

    honestly Tree-D will be a better name

    • @firerunnew
      @firerunnew 4 місяці тому +2

      This name was chosen because of the similarities with the names of other 3D objects in Godot

    • @wikittywhacktv
      @wikittywhacktv 3 місяці тому +2

      an even better name would have been treeDeeznuts

  • @firerunnew
    @firerunnew 5 місяців тому +23

    Thanks for reviewing my plugin!

    • @firerunnew
      @firerunnew 5 місяців тому +5

      The plugin has one problem with duplication, if you have experience with godot-cpp, I will be glad if someone helps to solve this problem. The problem can be found in the problems section on the plugin page. After solving the problem, additional functions will be added to the plugin, which were originally planned to be implemented.

    • @InvaderQaz
      @InvaderQaz 4 місяці тому

      @@firerunnew I'm not familiar with cpp, but I suggest adding a check to Tree3D(), where
      the meshs are added as child, to check if they're `not in` the node before doing
      so, that way; they're not added again.
      For example, if trunk_inst and twig_inst are already added to a node; running Tree3D()
      again -- will add them again.
      this->add_child(trunk_inst);
      this->add_child(twig_inst);
      This will add their nodes again as a child to "this" if you ctrl + D as it's cloning a already
      existing child pair + running Tree3D().
      *You must make sure where-ever you add a child in your code; it checks if it's already added.
      I don't guarantee that this is the fix.

    • @johnx140
      @johnx140 3 місяці тому +1

      Im gonna be honest i trie to install it and i have no idea what to do, i do the sdm thing and it wont work. Whats a easy way to install it?

    • @rzoom895
      @rzoom895 3 місяці тому

      @@johnx140 doesn't open for me too, it shows x's near the tree3d
      :(

  • @XMaster340
    @XMaster340 5 місяців тому +18

    The difference between "height" and "length" seems to be that height only affects the part of the tree that has branches and length only affects the trunk.

  • @Elwaves2925
    @Elwaves2925 5 місяців тому +82

    After that joke it's time for you to leaf.

    • @sicfxmusic
      @sicfxmusic 5 місяців тому +7

      Good one my fern.

    • @owdoogames
      @owdoogames 5 місяців тому +7

      He needs to branch out to other subjects

    • @schoolstuff5235
      @schoolstuff5235 5 місяців тому +3

      😂😂😂

    • @DaveAxiom
      @DaveAxiom 5 місяців тому +7

      All it takes to grow a tree is a random seed.

    • @jwr6796
      @jwr6796 5 місяців тому +4

      Man, you're really cutting the poor guy down.

  • @TheLastPhoen1x
    @TheLastPhoen1x 4 місяці тому +2

    I was just about to start writing procedural tree generator for my own game and this pops out. Awesome.

  • @UltimatePerfection
    @UltimatePerfection 4 місяці тому +3

    Great that it's real time and work at runtime, that way you can generate fully randomized forests where no two trees are the same.

  • @ItzVic
    @ItzVic 5 місяців тому +7

    can't wait to go home and try this out

  • @joshuasteward6672
    @joshuasteward6672 5 місяців тому +4

    It's really cool that you can change tree parameters on the fly in realtime. If I remember, that was something you couldn't do with speed tree in unity.

    • @UltimatePerfection
      @UltimatePerfection 4 місяці тому

      Yup and it allows for fully randomized forests where no two trees are the same (I always can tell if the game uses same tree models all the time or has procedural trees)

    • @gamechannel1271
      @gamechannel1271 2 місяці тому +1

      To be clear, a fully randomized forest is an extremely bad idea for GPU performance. No matter the game engine.

    • @gamechannel1271
      @gamechannel1271 2 місяці тому

      Give an example of a game that's not Minecraft that has "procedurally generated trees", and I will prove you wrong and show you that it's just a higher number of pre-baked models so you didn't notice.

  • @BirkinIdk
    @BirkinIdk 3 місяці тому +1

    I'll probably never even make a 3D game but this is awesome, thanks for the contribution to the community!

  • @somedude5951
    @somedude5951 5 місяців тому +3

    Great plug-in!
    Awe some, that some one would make this available for free!

  • @levi3970
    @levi3970 4 місяці тому +6

    no collision? could've been nice if it had something like "trunk collision" or "base trunk collision" just to block the player and bullets at the base of the tree.

  • @Chevifier
    @Chevifier 5 місяців тому +2

    08:01 The reason it looks like you cant select it in the editor is probably because its using the rendering server.

  • @Protech-ps6cw
    @Protech-ps6cw 5 місяців тому +5

    Great addon for godot and it's procedural 😮

  • @USER-ZB2YT
    @USER-ZB2YT 5 місяців тому

    I needed this just now. Thanks for the tutorial!

  • @nolram
    @nolram 5 місяців тому +10

    Those trees are looking a bit... retro I'd say :)

    • @kipchickensout
      @kipchickensout 3 місяці тому +1

      Thought I was the only one noticing that
      would be cool to have the ability to have them be more like this further away but higher quality close up

    • @gamechannel1271
      @gamechannel1271 2 місяці тому

      This is way too much polygon detail for a LOD tree. Even major games just use sprites for LOD. Also, having a different model for every tree is extremely taxing on your GPU for a forest scene, best to make 3 or so different models and scale/rotate them. Make use of instancing for clumps of nearby trees.

  • @AHeinermann
    @AHeinermann 5 місяців тому +3

    What about automatic vertex painting for wind strength, and LODs? It is definitely promising.

    • @firerunnew
      @firerunnew 4 місяці тому +1

      This is also in the plans)

  • @williamauditore7027
    @williamauditore7027 5 місяців тому

    Thanks so much for the constant updates

  • @SamMansfield91
    @SamMansfield91 5 місяців тому +4

    Awesome!

  • @Volt-Eye.
    @Volt-Eye. 5 місяців тому +2

    I like when I see
    " 100% Built with C++ "

  • @chaosmachines934
    @chaosmachines934 5 місяців тому +3

    looks nice

  • @morenagamesstudio
    @morenagamesstudio 3 місяці тому +1

    Tree3D node doesn't exists when I download it from AssetLib on Godot 4.3. (Windows).
    Tried the github demo as well. Same scenario.

  • @DarrylCross
    @DarrylCross 5 місяців тому

    I may be wrong, but my guess is that the "Length" controls the trunk before the first growth node -- where the tree starts branching -- and the "Height" controls the trunk after that?

  • @Shytposting
    @Shytposting 4 місяці тому

    Hey man, can you do a click and drag tutorial of how to move camera around a terrain.

  • @ThantiK
    @ThantiK 5 місяців тому +1

    In that procedural tree, what does lerping around the sweep value of the tree look like? I'd like to know if it could kind of look like wind. Is the sweep direction something you can change? What does a blank scene with 1000 trees drop to in terms of FPS on your system?

    • @XMaster340
      @XMaster340 5 місяців тому +2

      Wind is usually something you want to do entirely in shaders. Otherwise you'll be able to watch your performance die in real time.

    • @asanstudio
      @asanstudio 5 місяців тому +1

      I´m making a wind shader for trees in godot 4. It uses vertex colors to move branches and leaves, i will contact the creator of Tree3d if its possible to generate vertex colors data for my shader to work. ua-cam.com/video/cVG_OBADjz0/v-deo.htmlsi=pU1km0ZCF3w_J23u

  • @karthanok6859
    @karthanok6859 5 місяців тому

    thank you for showing this

  • @justinhouk7933
    @justinhouk7933 15 годин тому

    Looks nice but after loading a tree3d asset into my scene in 4.4-latest or 4.3 the scene crashes Godot with "

  • @Insomiotic
    @Insomiotic 5 місяців тому

    What about baking the meshes for use in gpu instancing? Im curious to know how performant this system is when applied to a larger scene!

    • @firerunnew
      @firerunnew 5 місяців тому +5

      There are many plans, but I need to fix a couple of errors, I also plan to add meshes for LOD

  • @JohnStonexDj
    @JohnStonexDj 4 місяці тому

    can you make a "Benchmark" how much trees you can place?

  • @dueddel
    @dueddel 5 місяців тому +1

    > Oh, tree list - Ironic.
    😂

  • @neozoid7009
    @neozoid7009 5 місяців тому

    BADASSS extension !!

  • @Raylios
    @Raylios 5 місяців тому

    Make sure you use tweens to obtain better looking procedural animations 👍👍

  • @JohnStonexDj
    @JohnStonexDj 4 місяці тому +1

    Love the Plugin but
    Fail: Cannot get class 'Tree3D'.
    he cant find the addon/plugin
    Godot 4.2.2
    Tree3D 0.6
    Linux Mint

    • @JohnStonexDj
      @JohnStonexDj 4 місяці тому

      *also not working if I download it in Asset Library

    • @firerunnew
      @firerunnew 4 місяці тому +2

      I haven't compiled libraries for other operating systems except Windows, you can compile it yourself using SCons

    • @JohnStonexDj
      @JohnStonexDj 4 місяці тому

      @@firerunnew ha ha I'm new in Linux but will try my best ^^

    • @JohnStonexDj
      @JohnStonexDj 4 місяці тому +1

      @@firerunnew Weeeehh Im a noob but I made it!!!! it works with linux

    • @firerunnew
      @firerunnew 4 місяці тому +1

      @@JohnStonexDj Good news :)

  • @jasoncrosby8523
    @jasoncrosby8523 5 місяців тому

    I just had the selection problem last night. Its because you have the pointer selected in the top instead of move, scale etc.

    • @jasoncrosby8523
      @jasoncrosby8523 5 місяців тому +1

      Although I just tested again now and it selecting works with pointer so idk anymore. I think it may be an engine thing as I was also playing around with a new plugin when I had the problem.

  • @cosmilitebar6772
    @cosmilitebar6772 2 місяці тому

    Looks good but after downloading it it does not work, those trees are not showing up

  • @copperbadge1
    @copperbadge1 4 місяці тому

    ...can I get it for tree?

  • @ucmRich
    @ucmRich 5 місяців тому

    think of "length" as "ground trunk height"

  • @UltimatePerfection
    @UltimatePerfection 4 місяці тому +1

    🌳🌲🌴

  • @NatjoOfficial
    @NatjoOfficial 5 місяців тому

    It's cool we have this now but... they don't look *great*, do they?

  • @EeVeE3D
    @EeVeE3D 5 місяців тому

    Cool👍

  • @simply4est
    @simply4est 5 місяців тому

    Drats, foilaged again!

  • @bioburden
    @bioburden 4 місяці тому

    I really dont understand why they didn't call it TreeD...

  • @Flashbry
    @Flashbry 5 місяців тому

    Treemendous!

  • @Lilrock2033
    @Lilrock2033 5 місяців тому

    I wish the creators of Gaia 2023 pro would make their products available to Godot. Make whole worlds using only a few clicks...

  • @derv1sh135
    @derv1sh135 4 місяці тому

    Can’t beleaf they didn’t call it TreeD

  • @Lansamatv
    @Lansamatv 5 місяців тому

    Could you make a tutorial on implementing blockchain in Godot, to make a play to earn game?

  • @rremnar
    @rremnar 5 місяців тому

    I suspect this is a port from Blender's tree addon, which is writen in python. That'd expain why it's free; but I could be wrong. It just seems similar.

  • @jacksmith4266
    @jacksmith4266 4 місяці тому

    Clickbaity thumbnail though, seems it's not produced with the plugin

  • @jwr6796
    @jwr6796 5 місяців тому

    Your attempt to branch out into humor was really going out on a limb, but I think you should stick to your roots.

  • @goodoldwilliam
    @goodoldwilliam 5 місяців тому +3

    i can see you are using that super dark and minimalist passive star godot theme, but unfortunately that's awful for videos and recording due to legibility, also the small font doesn't help, it should be light theme + increased UI scale + also active godot's "draw extra borders".

  • @Protech-ps6cw
    @Protech-ps6cw 5 місяців тому

    Just like unity

  • @WOW-Bomb_Games_Studios
    @WOW-Bomb_Games_Studios 5 місяців тому

    you adulters my wife. you curse my land. Jehowah not forgive you sin against holy spirit. you no need to gamedev and was deaccounted. (Mark 3 chapter)