Image Generation (L-Systems)

Using graphics to model real systems is always interesting particularly biological ones. At some point I would like to be able to try at real papers. However for now I am working through some bits of algorithmic botany based on the book at Algorithmic botany the first part of this is Liendenmeyer systems (L-Systems) which consists of string re-writing rules and a drawer whch can interpret the final series of symbols as drawing instructions. (Think LOGO turtle drawing from school)

In these context-free type systems the main objects of drawing interest are fractalsand space filling curves.

2D curves

Koch Curve.

Gasket.

Space Filling.

3D curves

To properly model trees we need to extent this to be able to draw in 3D I used the raytracer I was also working on which uncovered some issues and motivated several required improvements it it.

3D Space Filling.

Next Step

Next we will look at extending the L-System to add bracketing needed for branching structures.

All the json files for these scenes are in github.