home *** CD-ROM | disk | FTP | other *** search
- name 'Fictional Bushes'
- objname 'Bush01'
- angle 22.5
- detail 6
- dfactor .9
- scale .02
- radius 20
- length 100
- etrop .002
-
- #define k 6 as "Size,Small,Large",4,8
- #define t 2 as "Type,Ordered,Tight,Wild"
- #define e 1 as "Leaves,None,Flat,Textured"
- #define d 0 as "Detail,Low,Medium,High"
- #define j (k)
- #define l 100
- #define w ((k-3)*4)
- #define s (20+((k/2)*10))
-
-
- iterations j
- axiom Y(1)A
-
- rules
- Y(q) >> Y(q+1)
- A : t=0 >> #((d*3)+3)!(w)'(25)B
- A : t=1 >> #((d*3)+3)!(w)'(25)C
- A : t=2 >> #((d*3)+3)!(w)'(25)D
-
- // ordered
- B : q!j >> [&F(l)L!B]/////[&F(l)L!B]///////[&F(l)L!B]
- F(a) : q!j&t=0 >> S///F(a)//L
- F(a) : q=j&t=0 >> F.3(a)
- S : q!J >> F(l)L
- L : e=0 >> L
- L : e=1 >> ['(1)^^{-:f(s)+:f(s)+:f(s)-|-:f(s)+:f(s)+:f(s)}'(25)]
- L : e=2 >> [^^~(plants\leaf6gt.3ds)]
-
- // tight
- C : q!8&q!7 >> /.99(40)X(l)[!+.5(33)/E(1)C][!&.5(33)/E(1)C]X(l)[!-.5(33)/E(1)C][!^.5(33)/E(1)C]+.5(33)!/E(1)C
- X(a) : q!j >> X(a*1.5)
- X(a) >> F(a)
- E(b) : q!j >> E(b+1)
- E(b) : b<3&e=0 >> E(b)
- E(b) : b<3&e=1 >> '(1)[^^-(20)+.99(40){-:f(s)+:f(s)+:f(s)-|-:f(s)+:f(s)+:f(s)}]'(25)
- E(b) : b<3&e=2 >> [^^+.99(360)~(plants\leaf4gt.3ds)]
-
- // wild
- D >> F(l)
- F(a) : t=2&q!j&q!7 >> F(a)F(a)G(1)-[!/.99(360)-F(a)+G(1)F(a)+F(a)G(1)]+[!/.99(360)+F(a)-G(1)F(a)-F(a)G(1)]
- F(a) : t=2 >> F(a)
- G(b) : q!j >> G(b+1)
- G(b) : b<3&e=0 >> G(b)
- G(b) : b<3&e=1 >> '(1)[^^{-:f(s)+:f(s)+:f(s)-|-:f(s)+:f(s)+:f(s)}&&/(180)^^{-:f(s)+:f(s)+:f(s)-|-:f(s)+:f(s)+:f(s)}]'(25)
- G(b) : b<3&e=2 >> [^^~(plants\leaf7gt.3ds)&&/(180)^^~(plants\leaf7gt.3ds)]
-