Hi all, I am planning to make a 3d tree generator and growth - simulator in processing.
Here is a description of what i want to do:
-The programme starts, one branch starts to grow (1st generation)
-when it reaches a certain length a node is formed, then some new branches appear (2nd generation)
-the first branch continues to grow, but the growth slows down over time
-when the 2nd gen branches reach a certain length, then the 3rd gen appears, and so on...
-there is a flow of energy coming from the first branch and splitting to the following ones.
-there is a rule as to how the energy is divided to branches
-could be: "more vertical = more energy = more growth"
-And then the tree forms and grows, and the cpu is on fire...
At the moment I don't care about the graphics so much, which means I will probably use some 3d lines to form the trunk and branches.
Thoughts i have in mind for the matter are:
-I would like to keep every branch as a separate object (class) with its own properties and parameters. Each branch has a parent branch, from which it takes energy. Also its position is relative to its parent-branch's end point and direction.
-For sure there are some vector - based stuff i have to work with, but i think the crucial point is usage of classes.
* This will differ from a fractal - based tree generator in the fact that the tree grows dynamically, and is not static.
** I should be back with some code to discuss on soon.
*** Any comments or suggestions are welcome
1