home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / ANIMATE / CAMERA2 / CAMERA2.POV < prev   
Text File  |  1999-10-30  |  3KB  |  166 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // File by Dieter Bayer
  3. // Perturbed camera demonstration.
  4. // Use povray -icamera2.pov camera2.ini to trace.
  5.  
  6.  
  7. global_settings { assumed_gamma 2.2 }
  8.  
  9. #include "colors.inc"
  10.  
  11. // camera used for perspective projection (POV-Ray standard)
  12. // looking at the center of the cage
  13.  
  14. camera {
  15.   perspective
  16.   location <20, 30, -40>
  17.   right <4/3, 0, 0>
  18.   up <0, 1, 0>
  19.   direction <0, 0, 1>
  20.   look_at <0, 10, 0>
  21.   angle 70
  22.   normal {
  23.     waves 0.25 * (1 - clock)
  24.     frequency 8
  25.     phase 3.14 * clock
  26.   }
  27. }
  28.  
  29. background { color red 0.078 green 0.361 blue 0.753 }
  30.  
  31. light_source { <100, 100, -100> color Gray60 }
  32.  
  33. light_source { <-100, 100, -100> color Gray60 }
  34.  
  35. #declare My_Texture_1 =
  36. texture {
  37.   pigment {
  38.     color red 1 green 0.75 blue 0.33
  39.   }
  40.   finish {
  41.     diffuse 1
  42.     phong 0
  43.     phong_size 0
  44.     reflection 0
  45.   }
  46. }
  47.  
  48. triangle { <50, -4, 50> <-50, -4, 50> <-50, -4, -50> texture { My_Texture_1 } }
  49. triangle { <50, -4, 50> <-50, -4, -50> <50, -4, -50> texture { My_Texture_1 } }
  50.  
  51.  
  52. #declare My_Texture_2 =
  53. texture {
  54.   pigment {
  55.     color red 1 green 0.9 blue 0.7
  56.   }
  57.   finish {
  58.     diffuse 0.5
  59.     phong 0.5
  60.     phong_size 3
  61.     reflection 0.5
  62.   }
  63. }
  64.  
  65. /* red */
  66.  
  67. #declare My_Texture_3 =
  68. texture {
  69.   pigment {
  70.     color red 1 green 0 blue 0
  71.   }
  72.   finish {
  73.     diffuse 0.5
  74.     phong 0.5
  75.     phong_size 3
  76.     reflection 0.5
  77.   }
  78. }
  79.  
  80. /* green */
  81.  
  82. #declare My_Texture_4 =
  83. texture {
  84.   pigment {
  85.     color red 0 green 1 blue 0
  86.   }
  87.   finish {
  88.     diffuse 0.5
  89.     phong 0.5
  90.     phong_size 3
  91.     reflection 0.5
  92.   }
  93. }
  94.  
  95. /* blue */
  96.  
  97. #declare My_Texture_5 =
  98. texture {
  99.   pigment {
  100.     color red 0 green 0 blue 1
  101.   }
  102.   finish {
  103.     diffuse 0.5
  104.     phong 0.5
  105.     phong_size 3
  106.     reflection 0.5
  107.   }
  108. }
  109.  
  110. /* yellow */
  111.  
  112. #declare My_Texture_6 =
  113. texture {
  114.   pigment {
  115.     color red 1 green 1 blue 0
  116.   }
  117.   finish {
  118.     diffuse 0.5
  119.     phong 0.5
  120.     phong_size 3
  121.     reflection 0.5
  122.   }
  123. }
  124.  
  125. sphere { <+10, 0, +10>, 4 texture { My_Texture_3 } }
  126.  
  127. sphere { <-10, 0, -10>, 4 texture { My_Texture_6 } }
  128.  
  129. sphere { <+10, 0, -10>, 4 texture { My_Texture_5 } }
  130.  
  131. sphere { <-10, 0, +10>, 4 texture { My_Texture_4 } }
  132.  
  133.  
  134. sphere { <-10, 20, -10>, 4 texture { My_Texture_6 } }
  135.  
  136. sphere { <+10, 20, -10>, 4 texture { My_Texture_6 } }
  137.  
  138. sphere { <-10, 20, +10>, 4 texture { My_Texture_6 } }
  139.  
  140. sphere { <+10, 20, +10>, 4 texture { My_Texture_6 } }
  141.  
  142. cylinder { <-10, 0, -10>, <+10, 0, -10>, 2 texture { My_Texture_2 } }
  143.  
  144. cylinder { <+10, 0, -10>, <+10, 0, +10>, 2 texture { My_Texture_2 } }
  145.  
  146. cylinder { <+10, 0, +10>, <-10, 0, +10>, 2 texture { My_Texture_2 } }
  147.  
  148. cylinder { <-10, 0, +10>, <-10, 0, -10>, 2 texture { My_Texture_2 } }
  149.  
  150. cylinder { <-10, 20, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  151.  
  152. cylinder { <+10, 20, -10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  153.  
  154. cylinder { <+10, 20, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  155.  
  156. cylinder { <-10, 20, +10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  157.  
  158. cylinder { <-10, 0, -10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  159.  
  160. cylinder { <-10, 0, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  161.  
  162. cylinder { <+10, 0, +10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  163.  
  164. cylinder { <+10, 0, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  165.  
  166.