home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / 2danf.pov next >
Encoding:
Text File  |  1993-11-26  |  2.6 KB  |  138 lines

  1. // POV 2
  2.  
  3. #include "colors.inc"
  4. #include "textures.inc"
  5. #include "shapes.inc"
  6.  
  7. camera {
  8.    location < 1, 0, -35 >
  9.    direction < 0, 0, 1 >
  10.    up  < 0, 1, 0 >
  11.    right < 4 / 3, 0, 0 >
  12.    look_at < 1, 0, 0 >
  13. }
  14.  
  15. // Light source
  16.  
  17. object { light_source { < 25, 20, -150 > color White } }
  18. object { light_source { < -25, 20, -150 > color White } }
  19.  
  20. object {
  21.     sphere { < 0, -4000, 0 > 5000 }
  22.     texture {
  23.         pigment {
  24.             Bright_Blue_Sky
  25.             scale < 600, 240, 240 >
  26.         }
  27.         finish {
  28.             ambient 1.0
  29.             diffuse 0.0
  30.         }
  31.     }
  32. }
  33.  
  34. // Floor plane
  35.  
  36. #declare Cube = box { < -0.5, -0.5, -0.5 >, < 0.5, 0.5, 0.5 > }
  37.  
  38. #declare Case_Wood =
  39. pigment {
  40.     wood
  41.     turbulence 0.06
  42.     color_map {
  43.         [ 0.00 color red 0.59 green 0.41 blue 0.25 ]
  44.         [ 0.95 color red 0.36 green 0.25 blue 0.20 ]
  45.         [ 1.00 color red 0.35 green 0.16 blue 0.14 ]
  46.     }
  47.     scale < 0.3, 0.3, 0.3 >
  48. }
  49.  
  50. #declare BoxWidth = 36
  51. #declare BoxHeight = 28
  52. #declare BoxDepth = 1.5
  53.  
  54. #declare Center1 = ( BoxWidth / 6 ) * -2.5
  55. #declare Center2 = ( BoxWidth / 6 ) * -1.5
  56. #declare Center3 = ( BoxWidth / 6 ) * -0.5
  57. #declare Center4 = ( BoxWidth / 6 ) * 0.5
  58. #declare Center5 = ( BoxWidth / 6 ) * 1.5
  59. #declare Center6 = ( BoxWidth / 6 ) * 2.5
  60.  
  61. #declare Slat =
  62. object {
  63.     Cube
  64.     scale < BoxWidth / 8, BoxHeight, 0.5 >
  65. }
  66.  
  67.  
  68. #declare CenterBox =
  69. union {
  70.     object {
  71.         Slat
  72.         texture {
  73.             pigment {
  74.                 Case_Wood
  75.                 rotate < 4, 3, 2 >
  76.             }
  77.         }
  78.         translate < Center1, 0, 0 >
  79.     }
  80.  
  81.     object {
  82.         Slat
  83.         texture {
  84.             pigment {
  85.                 Case_Wood
  86.                 rotate < 3, -5, -2 >
  87.             }
  88.         }
  89.         translate < Center2, 0, 0 >
  90.     }
  91.  
  92.     object {
  93.         Slat
  94.         texture {
  95.             pigment {
  96.                 Case_Wood
  97.                 rotate < -4, 6, 8 >
  98.             }
  99.         }
  100.         translate < Center3, 0, 0 >
  101.     }
  102.  
  103.     object {
  104.         Slat
  105.         texture {
  106.             pigment {
  107.                 Case_Wood
  108.                 rotate < 1, -2, 3 >
  109.             }
  110.         }
  111.         translate < Center4, 0, 0 >
  112.     }
  113.  
  114.     object {
  115.         Slat
  116.         texture {
  117.             pigment {
  118.                 Case_Wood
  119.                 rotate < 3, 2, -1 >
  120.             }
  121.         }
  122.         translate < Center5, 0, 0 >
  123.     }
  124.  
  125.     object {
  126.         Slat
  127.         texture {
  128.             pigment {
  129.                 Case_Wood
  130.                 rotate < 0, 0, 0 >
  131.             }
  132.         }
  133.         translate < Center6, 0, 0 >
  134.     }
  135. }
  136.  
  137. object { CenterBox }
  138.