LTree

A Program for
Stochastic/Parametric L-Systems

by Michael Knapp
Fraktale LU, WS 2001/2002

 

What is it ? This Program is designed for editing and visualizing stochastic and/or parametric L-Systems
Features Supports 2D and 3D L-Systems
Editor for Grammar
Loading & Saving of Grammar Files
Interactive 3D View of the Generated Objects
Requirements Microsoft Windows 95/98/NT/2000/XP with OpenGL

Download

Download LTree with MSVC++ 6.0 Source Code
ZIP file, 200KB
Screenshot

Rendering Examples

User's Guide



Grammar Edit Field

Enter your L-System grammar here:
An $ at the first position denotes a global variable: e.g. $myvar=123. On the right side, there has to be a number only. There are some special variables: $ANGLE sets the default angle for direction changes, $RADIUS the default radius for drawing operations and $STEPS sets the number of derivations. The variable is then used without the leading $ in productions.

The @ at the firstposition denotes the axiom.

A Production can be writen in following forms:

<production> ::= <letter>[(<param>[,<param>])][:<condexpr>]-->[(<probability>)]<symbols>
<symbols> ::= <symbol>[,<symbols>]
<symbol> ::= <letter>[(<expr>[,<expr>])]

Examples:

F-->AFBBCF A simple production
F(x,y)-->S(x)F(x+y,x-y)AB(y*globalvar) A parametric production
F(x):(x>5)-->F(x-1)BC A conditional parametric production
F(x)-->(0.45)ABF(x-1) A parametric, stochastic Production
F(x):(x>3)-->(0.45)ABF(x-1) A parametric, stochastic conditional Production

Note: symbols with the same letter, but different number of parameters are different symbols: e.g. F(x) and F(x,y) are completly different symbols.

Edit Field

Enter the axiom, the starting symbols, for the derivation steps. This value is overridden by the axiom defined with @

Number of Derivations

Enter the number of derivation steps here. This value is overriden by the $STEPS variable, if set

Scale Slider

Move the slider to resize the generated 3d object

Generate Button

Press this Button the start the derivation process, then the resulting 3d object will be displayed. If you don't see any object, use the slider to scale down the object or select a higher number of derivation steps. Start with at least 3 steps but not more than 10 steps.

Available Drawing Productions

This list contains the available drawing productions. Use this symbols to draw the object