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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Type 1 cylindrical 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. // sitting in the center of the cage looking at center of upright
  11. // post above the red ball
  12.  
  13. camera {
  14.   cylinder 1
  15.   angle 180
  16.   location <0, 10, 0>
  17.   right <8, 0, 0>  
  18.   up <0, 6, 0>     
  19.   direction <0, 0, 2.5>
  20.   look_at <10, 10, 10>
  21. }
  22.  
  23. background { color red 0.078 green 0.361 blue 0.753 }
  24.  
  25. light_source { <100, 100, -100> color Gray60 }
  26.  
  27. light_source { <-100, 100, -100> color Gray60 }
  28.  
  29. #declare My_Texture_1 =
  30. texture {
  31.   pigment {
  32.     color red 1 green 0.75 blue 0.33
  33.   }
  34.   finish {
  35.     diffuse 1
  36.     phong 0
  37.     phong_size 0
  38.     reflection 0
  39.     refraction 0
  40.     ior 0
  41.   }
  42. }
  43.  
  44. triangle { <50, -4, 50> <-50, -4, 50> <-50, -4, -50> texture { My_Texture_1 } }
  45. triangle { <50, -4, 50> <-50, -4, -50> <50, -4, -50> texture { My_Texture_1 } }
  46.  
  47. #declare My_Texture_2 =
  48. texture {
  49.   pigment {
  50.     color red 1 green 0.9 blue 0.7
  51.   }
  52.   finish {
  53.     diffuse 0.5
  54.     phong 0.5
  55.     phong_size 3
  56.     reflection 0.5
  57.     refraction 0
  58.     ior 0
  59.   }
  60. }
  61.  
  62. /* red */
  63.  
  64. #declare My_Texture_3 =
  65. texture {
  66.   pigment {
  67.     color red 1 green 0 blue 0
  68.   }
  69.   finish {
  70.     diffuse 0.5
  71.     phong 0.5
  72.     phong_size 3
  73.     reflection 0.5
  74.     refraction 0
  75.     ior 0
  76.   }
  77. }
  78.  
  79. /* green */
  80.  
  81. #declare My_Texture_4 =
  82. texture {
  83.   pigment {
  84.     color red 0 green 1 blue 0
  85.   }
  86.   finish {
  87.     diffuse 0.5
  88.     phong 0.5
  89.     phong_size 3
  90.     reflection 0.5
  91.     refraction 0
  92.     ior 0
  93.   }
  94. }
  95.  
  96. /* blue */
  97.  
  98. #declare My_Texture_5 =
  99. texture {
  100.   pigment {
  101.     color red 0 green 0 blue 1
  102.   }
  103.   finish {
  104.     diffuse 0.5
  105.     phong 0.5
  106.     phong_size 3
  107.     reflection 0.5
  108.     refraction 0
  109.     ior 0
  110.   }
  111. }
  112.  
  113. /* yellow */
  114.  
  115. #declare My_Texture_6 =
  116. texture {
  117.   pigment {
  118.     color red 1 green 1 blue 0
  119.   }
  120.   finish {
  121.     diffuse 0.5
  122.     phong 0.5
  123.     phong_size 3
  124.     reflection 0.5
  125.     refraction 0
  126.     ior 0
  127.   }
  128. }
  129.  
  130. sphere { <+10, 0, +10>, 4 texture { My_Texture_3 } }
  131.  
  132. sphere { <-10, 0, -10>, 4 texture { My_Texture_6 } }
  133.  
  134. sphere { <+10, 0, -10>, 4 texture { My_Texture_5 } }
  135.  
  136. sphere { <-10, 0, +10>, 4 texture { My_Texture_4 } }
  137.  
  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. sphere { <+10, 20, +10>, 4 texture { My_Texture_6 } }
  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, 0, +10>, <-10, 0, -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, 20, +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. cylinder { <+10, 0, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  170.  
  171.