Monday, May 14, 2012

3D L-System Generator

This tool uses L-System logic to create 3D fractal systems in Maya.

L-Systems or Lindenmayer sytems are a type of fractal that can be used to mathematically describe plant growth. L-Systems consist of a rule, a seed and a number of generations. For each generation the rule replaces each seed in the algorithm to create a plant like structure.

Typically these algorithms are intended to create 2D dimensional images that, although plant like, are very mathematical in appearance and very non-organic due to the similarities between each generation. My goal for this tool was the creation of three dimensional plant life and vegetation. Due to this specific goal I wanted these L-Systems to seem less formulaic and more organic. To achieve this I followed all rules typical to L-System but randomize both the span and segment length not only for each generation but for each created segment.

This tool contains a GUI to allow the user to adjust their L-System as they see fit. A user can also insert their own rule thus allowing for the creation of new types of L-Systems.

This script was written in Python and the GUI was created with PyQt.

No comments:

Post a Comment