TREE.BAS DMS Science Fair, May 1990. 27 Sep 1997 by Marc Kummel aka Treebeard. Contact mkummel@rain.org, http://www.rain.org/~mkummel/ About TREE: ------------- TREE is an old program from the Vault (1986/1989) that makes trees of the botanical sort. This goes back to a program I wrote for my Atari 800 way back in 1986, based on a program in _Analog Computing_ magazine. I *love* this program! The evolution features are real slick. But I haven't gotten around to writing a decent README yet. You're on your own for now! Tree Parameters: ------------------ Think of the parameter set as a chromosome, with each parameter a gene. A tree is completely determined by its genes, so by mutating genes we can evolve new trees, and assess their fitness by the measures of Effective Surface Area (ESA) and Foliage Efficiency Factor (FEF). Tree parameters (1): Main branching levels trunk diameter contraction ratio divergence angle leaf measurement leaf radius autosize show axes show leaves show shadow render colors Tree parameters (2): Branching (left - right) branch angle angle decrement shortening ratio ratio decrement branch probability probability delta Tree parameters (3): Global attractor x deviation y deviation z deviation Tree parameters (4): Local attractors attractor number x-position y-position z-position strength Tree parameters (5): Random/mutate constraints (0-1) level change width change leaf change divergence change divergence values left branch change right branch change probability change global change local change File List: ------------ The files shown below the dotted line are source files that can be deleted if you don't need then, but I won't do it for you. TREE.EXE DOS executable TREE.ICO an icon for Win31 *.TRE sample data files VGAOEM.FON Win31 font in case it's not on your system README.TXT this file TBVAULT.TXT about Treebeard's Basic Vault ------------ TREE07.MAK file list for PDS/QB TREE07.BAS source code: main module TREEMOD1.BAS source code: overflow from main XQB.BAT batch file to start PDS with source code MAKE.BAT batch file to compile and link from DOS prompt TREE was written for MS Basic PDS 7.10. QB4.5 will probably need some changes. It won't work with QBasic. To use the source code, you will also need the following files from my NPF program archive, also available from Treebeard's Basic Vault at http://www.rain.org/~mkummel/basic. Copy these files to your TREE directory. The code requires special library routines and EMS sharing so start PDS with /L TBLIB and /ES options, or use the XQB.BAT batch file. The required files are: NPSUP.BI include file of global declarations and variables GFONT5.BAS code module to use Windows *.FON fonts EMS4.BAS code module to use expanded memory SBSUP16.BAS code module of support routines TBLIB.QLB Quick Library of misc assembler routines TBLIB.LIB Library files for compiling Original Sources: -------------------- These are (mostly) the sources I used for the original 1989 version of this program. R.I. MacDonald, "Bonzai", Analog Computing, May 1986, p.23. Brayton f. Wilson, _The Growing Tree_, University of Massachusetts Press, 1984. "Computer-simulated plant evolution", SciAm, March 1986, p.78 "Botanical Tree Image Generation", IEEE Computer Graphics and Applications, May 1984, p.10 "Branch geometry etc.", American Journal of Botany, 1979, p.633 Conditions: ------------- This program and source code are yours to use and modify as you will, but they are offered as freeware with no warranty whatsoever. Give me credit, but do not distribute any changes under my name, or attribute such changes to me in any way. You're on your own! Send comments and fixes to: Marc Kummel aka Treebeard mkummel@rain.org http://www.rain.org/~mkummel/ For more interesting Basic software with source code, check out Treebeard's Basic Vault at http://www.rain.org/~mkummel/basic/