Plugin for procedural generation of 3D trees (Help needed)

I used to use Unity built-in tree generation plugin a lot, and decided to create something similar for Godot Engine, you can check it out and try it here - here or watch the video review

The development is going according to plan, but since I am new to GDExtension and have only recently started learning godot-cpp, the plugin has one annoying problem when duplicating a node, which you can read about here - here

I know there are a lot of good people here who know the inner workings of godot-cpp, if someone could try to solve this problem, I would be very grateful!

6 Likes

Very interesting work! Will this plugin support the wind effect? Perhaps it makes sense to merge it with this plugin?

  1. Use the SCons command:

So, the plugin requires compilation of the engine? Are there any plans to release it without compilation?

Thank you!
Yes, after fixing all the errors, there are still many tasks in the plans, the wind shader is also included there (all materials are available for modification, if you have a wind shader you can apply it to the tree now), I also plan to make it compatible for scattering on the terrain from Tokisan.

No, you don’t need to compile the entire engine, you only need godot-cpp to compile the plugin itself, this is a standard procedure for plugins written in C++.

There are already ready-made builds on the plugin repository.

2 Likes

Hi, i am making a wind shader that uses vertex color data, your plugin can generate vertex colors?

I am using the colors as:

red = leaves movement
green = variation
blue = branches movement

i made two shaders, one for the trunk and another for the leaves, i am using TreeIt to make the trees and because it export the models with Trunk and Leaves as submeshes.

1 Like

This can be tried to be implemented!
But I would like to fix all the problems first, then add something new

2 Likes

Has the development of this wonderful plugin been abandoned? :pouting_cat:

No, in godot 4.5 there is a PR fix that solves the problem that occurs when we switch scene tabs and we have a crash, this is an important fix for the plugin that will allow us to continue development, but only for 4.5+.
There is also a problem with duplication, which is less critical, but also important enough to fix.

1 Like

I’ll be waiting and watching. :telescope:

It’s not a problem for me. Godot makes a lot of changes useful for my project, that’s why I transfer to new versions as soon as they are released.