home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / camera / camera1e.pov < prev    next >
Text File  |  1997-12-12  |  3KB  |  169 lines

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