home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / TREES.ZIP / tree2.pov < prev    next >
Encoding:
Text File  |  1997-03-19  |  2.9 KB  |  134 lines

  1. // c1997 by Stephan Kuhagen
  2. // stk@informatik.uni-bremen.de
  3. // mail me, send postcards, show me your pictures
  4.  
  5. #include "colors.inc"
  6. #include "leafshapes.inc"
  7.  
  8. light_source { <100 , 50, 100> color White }
  9.  
  10.  
  11. camera
  12. {
  13.  location <0 , 0, 51>
  14.  look_at  <0 , 17, 0>
  15. }
  16.  
  17. #declare LEAFINC_0 =
  18. object
  19. {
  20.   LEAFSHAPE_01
  21.   texture{
  22.     pigment{ bozo
  23.       color_map {
  24.         [0 color rgb <.25,0,0>]
  25.         [1 color rgb <0,1,0>]
  26.       }
  27.       scale 0.025
  28.     }
  29.     finish{
  30.       ambient 0.2
  31.       diffuse 0.8
  32.       specular 0.6
  33.     }
  34.     normal{bozo 0.1
  35.       scale 0.05
  36.     }
  37.   }
  38.   scale 0.3
  39. }
  40.  
  41. #declare LEAFINC_1 =
  42. object
  43. {
  44.   LEAFSHAPE_01
  45.   texture{
  46.     pigment{ bozo
  47.       color_map {
  48.         [0 color rgb <.25,0.6,0>]
  49.         [1 color rgb <0.3,0.8,0>]
  50.       }
  51.       scale 0.025
  52.     }
  53.     finish{
  54.       ambient 0.2
  55.       diffuse 0.8
  56.       specular 0.6
  57.     }
  58.     normal{bozo 0.1
  59.       scale 0.05
  60.     }
  61.   }
  62.   scale 0.3
  63. }
  64.  
  65. #declare LEAFINC_2 =
  66. object
  67. {
  68.   LEAFSHAPE_01
  69.   texture{
  70.     pigment{ bozo
  71.       color_map {
  72.         [0 color rgb <.25,0,0>]
  73.         [1 color rgb <1,0.6,0>]
  74.       }
  75.       scale 0.025
  76.     }
  77.     finish{
  78.       ambient 0.2
  79.       diffuse 0.8
  80.       specular 0.6
  81.     }
  82.     normal{bozo 0.1
  83.       scale 0.05
  84.     }
  85.   }
  86.   scale 0.4
  87. }
  88.  
  89.  
  90. #declare MOD_TR = texture { pigment { color VeryDarkBrown } }
  91. #declare MOD_0  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  92. #declare MOD_1  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  93. #declare MOD_2  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  94. #declare MOD_3  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  95. #declare MOD_4  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  96. #declare MOD_5  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  97. #declare MOD_6  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  98. #declare MOD_7  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  99. #declare MOD_8  = texture { pigment { color DarkBrown } normal { bozo 0.2 scale <0.05, 0.2, 0.08> } }
  100.  
  101.  
  102. #declare BLEN=8
  103. #declare RADIUS=1.1
  104. #declare TRUNKBASER=1.6
  105. #declare TRUNKCAPR=1.1
  106. #declare LDIFF=1
  107. #declare RADSCALE=0.7
  108. #declare RDIFF=0.3
  109. #declare RECSCALE=0.8
  110. #declare SLOPEANGLE=50
  111. #declare SANGLEDIFF=10
  112. #declare ANGLESCALE=1
  113. #declare NRBDIFF=1
  114. #declare NRBSCALEADD=0
  115. #declare BRANCHTOP=0.4
  116. #declare DEPTH=8
  117. #declare NRBRANCHES="(pow(((X/2)-2),2)/2.0)+1"
  118. #declare USESTDTRUNK="YES"
  119. #declare TRUNKLEN=14
  120.  
  121. #declare LEAFINC = "YES"
  122. #declare NRLEAFINCS = 3
  123. #declare NRLEAFS = 3
  124.  
  125. #include "selftree.inc"
  126. #include "tree1.inc"
  127.  
  128.  
  129. #debug    "\n\nSELFTREE STATISTICS:\n"
  130. #debug        "--------------------\n"
  131. #debug concat("Number of cones   : ",str(NROFCONES, 0, 0),"\n")
  132. #debug concat("Number of spheres : ",str(NROFSPHERES, 0, 0),"\n")
  133. #debug concat("Number of leafs   : ",str(NROFLEAFS, 0, 0),"\n")
  134.