Babylonjs Fractals (The Pythagorean Tree)

A simple fractal generator that generates the Pythagorean tree. Code
2024-09-12-14-51-41-567
Not comme il faut… And this is fixable

Here is THE SECOND VERSION

2024-09-12-15-19-36-901

But now generates everything recursively and not in one line.

Although maybe someone else wrote fractal code on Babylon before me, but I want to believe that I am the first! I’d like to know that…

6 Likes

Fractals are fascinating :slight_smile:
Fractal line system - Babylon.js Playground
SPS Tree generator - Babylon.js docs
CloudBlock class used to Generate Fractal Brownian Motion Clouds - Babylon.js docs
Menger Sponge Fractal pattern - Menger sponge Fractal Pattern using Babylon
Surely, there are even more examples to investigate!

Well, the way I did it, no one has done it yet… The Pythagorean tree has definitely not been done on this engine yet…

2 Likes