home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_040 / pov3demo / anim / camera2 / camera2.pov < prev   
Text File  |  1997-12-12  |  3KB  |  177 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer
  3. // Perturbed camera demonstration.
  4. // Use povray -icamera2.pov camera2.ini to trace.
  5.  
  6. #version 3.0
  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.     refraction 0
  46.     ior 0
  47.   }
  48. }
  49.  
  50. triangle { <50, -4, 50> <-50, -4, 50> <-50, -4, -50> texture { My_Texture_1 } }
  51. triangle { <50, -4, 50> <-50, -4, -50> <50, -4, -50> texture { My_Texture_1 } }
  52.  
  53. #declare My_Texture_2 =
  54. texture {
  55.   pigment {
  56.     color red 1 green 0.9 blue 0.7
  57.   }
  58.   finish {
  59.     diffuse 0.5
  60.     phong 0.5
  61.     phong_size 3
  62.     reflection 0.5
  63.     refraction 0
  64.     ior 0
  65.   }
  66. }
  67.  
  68. /* red */
  69.  
  70. #declare My_Texture_3 =
  71. texture {
  72.   pigment {
  73.     color red 1 green 0 blue 0
  74.   }
  75.   finish {
  76.     diffuse 0.5
  77.     phong 0.5
  78.     phong_size 3
  79.     reflection 0.5
  80.     refraction 0
  81.     ior 0
  82.   }
  83. }
  84.  
  85. /* green */
  86.  
  87. #declare My_Texture_4 =
  88. texture {
  89.   pigment {
  90.     color red 0 green 1 blue 0
  91.   }
  92.   finish {
  93.     diffuse 0.5
  94.     phong 0.5
  95.     phong_size 3
  96.     reflection 0.5
  97.     refraction 0
  98.     ior 0
  99.   }
  100. }
  101.  
  102. /* blue */
  103.  
  104. #declare My_Texture_5 =
  105. texture {
  106.   pigment {
  107.     color red 0 green 0 blue 1
  108.   }
  109.   finish {
  110.     diffuse 0.5
  111.     phong 0.5
  112.     phong_size 3
  113.     reflection 0.5
  114.     refraction 0
  115.     ior 0
  116.   }
  117. }
  118.  
  119. /* yellow */
  120.  
  121. #declare My_Texture_6 =
  122. texture {
  123.   pigment {
  124.     color red 1 green 1 blue 0
  125.   }
  126.   finish {
  127.     diffuse 0.5
  128.     phong 0.5
  129.     phong_size 3
  130.     reflection 0.5
  131.     refraction 0
  132.     ior 0
  133.   }
  134. }
  135.  
  136. sphere { <+10, 0, +10>, 4 texture { My_Texture_3 } }
  137.  
  138. sphere { <-10, 0, -10>, 4 texture { My_Texture_6 } }
  139.  
  140. sphere { <+10, 0, -10>, 4 texture { My_Texture_5 } }
  141.  
  142. sphere { <-10, 0, +10>, 4 texture { My_Texture_4 } }
  143.  
  144.  
  145. sphere { <-10, 20, -10>, 4 texture { My_Texture_6 } }
  146.  
  147. sphere { <+10, 20, -10>, 4 texture { My_Texture_6 } }
  148.  
  149. sphere { <-10, 20, +10>, 4 texture { My_Texture_6 } }
  150.  
  151. sphere { <+10, 20, +10>, 4 texture { My_Texture_6 } }
  152.  
  153. cylinder { <-10, 0, -10>, <+10, 0, -10>, 2 texture { My_Texture_2 } }
  154.  
  155. cylinder { <+10, 0, -10>, <+10, 0, +10>, 2 texture { My_Texture_2 } }
  156.  
  157. cylinder { <+10, 0, +10>, <-10, 0, +10>, 2 texture { My_Texture_2 } }
  158.  
  159. cylinder { <-10, 0, +10>, <-10, 0, -10>, 2 texture { My_Texture_2 } }
  160.  
  161. cylinder { <-10, 20, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  162.  
  163. cylinder { <+10, 20, -10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  164.  
  165. cylinder { <+10, 20, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  166.  
  167. cylinder { <-10, 20, +10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  168.  
  169. cylinder { <-10, 0, -10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  170.  
  171. cylinder { <-10, 0, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  172.  
  173. cylinder { <+10, 0, +10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  174.  
  175. cylinder { <+10, 0, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  176.  
  177.