An interactive 2D fractal tree generator/simulator created in Java.
It simulates organic tree growth using a recursive branching model influenced by adjustable physical parameters such as branch splitting ratios, angles, etc. Each branch dynamically adapts to simulated wind and regenerates into unique tree structures at the press of a key.
- Dynamic trees
- Dynamic flowers
- Dynamic leafs
- Simulation Controls
- Full UI built in Java
- The
Treeclass holds a single root branch. - Each
Branchrecursively spawns two sub-branches, splitting length and thickness based on:
- Flux division factor – how much “energy” goes into each branch
- Branching angle – how far branches diverge
- Scaling factor – how quickly branches thin out
- Branches stop growing when their diameter falls below a leaf cutoff threshold.
- Wind forces perturb the direction of each branch recursively, creating smooth, realistic motion.
- Flowers and leafs are drawn at the leaf cutoff threshold
Augustge's Tree animation: https://github.com/augustge/augustge.github.io/Animations/TreeGenerator
TreeStudio: https://www.pixarra.com/tree_studio.html