PDA

View Full Version : Generator of random trees



Petr Schreiber
06-09-2006, 16:26
Hi all,

after some time, here is newer TBGL project.
It is generator of 3D polygonal trees for use in games, for example.

You just call function with parameters and new tree will grow in few milliseconds.
Attached ZIP file contains both "generator" and "reader" sample.

The trees can be saved in special format, which contains link to used texture, parameters to function and "genetic code" of the tree.

The genetic code is just serie of characters, which determine, how the tree will grow.

The results are not always perfect, but if you'll be patient, you can get some usable trees. Sometimes just decent modification of input parameters can cause to born monster, try to experiment :)


Have fun !,
Petr

ErosOlmi
07-09-2006, 11:18
The objects this script generates are really very nice and ipnotic.
Looking at the generated trees is like been in front of a fire, you get addicted :D

Thanks
Eros