L-systems
From GenerativeArt
(Difference between revisions)
m (→Rendering L-system expressions) |
(more formatting) |
||
{{SingleImage|imageWidthPlusTen=460|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys/01.png|caption=Example showing string interpretation}} | {{SingleImage|imageWidthPlusTen=460|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys/01.png|caption=Example showing string interpretation}} | ||
- | == L | + | |
- | L Systems can grow via iterative string substitution. | + | == How L-systems Grow == |
+ | |||
+ | <SPAN STYLE="font-size: larger;">String rewriting/substitution </SPAN> | ||
+ | |||
+ | L Systems can grow via iterative string substitution. The system initially has three components and | ||
Initial condition - n d and δ | Initial condition - n d and δ | ||
Production Rules: specifies string substitution | Production Rules: specifies string substitution | ||
- | |||
- | + | <SPAN STYLE="font-size: larger;"><u>Example</u></SPAN> | |
n = 3 | n = 3 | ||
{{SingleImage|imageWidthPlusTen=460|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys/02.png|caption=Example showing string substitution}} | {{SingleImage|imageWidthPlusTen=460|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys/02.png|caption=Example showing string substitution}} | ||
- | = | + | |
+ | <SPAN STYLE="font-size: larger;"><u> Symbols</u></SPAN> | ||
+ | |||
+ | |||
L Systems can also have symbols which have no drawing operations associated with them, but which add to complexity in production | L Systems can also have symbols which have no drawing operations associated with them, but which add to complexity in production | ||
{{SingleImage|imageWidthPlusTen=460|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys/03.png|caption=Example showing string substitution with symbols}} | {{SingleImage|imageWidthPlusTen=460|imageURL=http://www-viz.tamu.edu/courses/viza658/wiki/lsys/03.png|caption=Example showing string substitution with symbols}} | ||
+ | |||
== Branching Structures == | == Branching Structures == | ||
This is an important conceptual leap than having genes for a specific phenotype (e.g. "red" or "tall") L-System genes would specify a mechanism which then creates form. Much more like real DNA. | This is an important conceptual leap than having genes for a specific phenotype (e.g. "red" or "tall") L-System genes would specify a mechanism which then creates form. Much more like real DNA. | ||
+ | |||
== Stochastic L-Systems == | == Stochastic L-Systems == |