home *** CD-ROM | disk | FTP | other *** search
/ Computerspiele Selbermachen / computerspieleselbermachen.iso / pov / trees.pov < prev    next >
Text File  |  1994-01-30  |  2KB  |  91 lines

  1. //POV-Ray 2.0 scene file: displays detailed tree images 
  2. //created with Lj Lapre's L-system parser.
  3.  
  4. //Dick LeVitt, CIS 76216,2066 
  5. //1/29/94
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. //Also requires "mytree.inc" and "barktex.gif"
  11.  
  12. // WORLD --------------------------------------------------------------------
  13.  
  14. // Setup camera
  15.  
  16. camera {
  17.     location  <150, 60, 130>
  18.     direction  <0, 0, 1>
  19.     up  < 0, 1, 0>
  20.     right  <-1.33, 0, 0>
  21.     //sky <0, 0, 1>
  22.    look_at  <50, 60, 0>
  23. }
  24.  
  25. // Setup light sources
  26.  
  27. object { light_source { <250, 180, 100> color White } }
  28.  
  29.  
  30. // Floor
  31. object {plane { <0, 1, 0>, 0} 
  32.         texture { 
  33.           Cork scale <2,2,2>
  34.           normal { wrinkles .7 scale 12}
  35.         } 
  36. }
  37.  
  38. // Sky
  39. object { 
  40.  sphere { <0, 0, 0>, 1 } 
  41.   texture { 
  42.    pigment {
  43.      gradient <0, 1, 0> 
  44.      color_map {
  45.       [0 color red 0.9 green .95 blue 1.0 ]
  46.       [1 color SkyBlue]
  47.      }
  48.    }
  49.    finish {ambient .8 diffuse 0}
  50.   } 
  51.  scale <100000, 100000, 100000> 
  52. }
  53.  
  54. // OBJECT SETUP -------------------------------------------------------------
  55.  
  56. // Select "lbase" object for rendering 
  57.  
  58. #declare l_base = object { cylinder { <0, 0, 0>, <0, 1.5, 0>, .75 } }  
  59.  
  60. // Textures for l_base object and leaves
  61.  
  62. #declare Bark = texture {
  63.                   pigment {color Tan}
  64.                   normal {
  65.                     bump_map {
  66.                       gif "barktex.gif"
  67.                       map_type 2
  68.                       bump_size 3
  69.                     }
  70.                   rotate <0, -60, 0>
  71.                   }        
  72.                 }
  73. #declare Leaf1 = texture {pigment {color ForestGreen} finish {ambient .5}}
  74. #declare Leaf2 = texture {pigment {color MediumForestGreen} finish {ambient .5}}
  75. #declare Leaf3 = texture {pigment {color GreenYellow} finish {ambient .5}}
  76.  
  77. // OBJECTS ------------------------------------------------------------------
  78.  
  79. #include "mytree.inc"
  80.  
  81. object {MyTree
  82.   scale <1.2, 1.2, 1.2>
  83. }
  84. object {MyTree
  85.   rotate <0, -150, 0>
  86.   translate <50, 0, -240>
  87. }
  88.  
  89.  
  90.  
  91.