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

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Type 2 cylindrical camera example
  3. // File by Dieter Bayer
  4.  
  5.  
  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 2
  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.   }
  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.   }
  56. }
  57.  
  58. /* red */
  59.  
  60. #declare My_Texture_3 =
  61. texture {
  62.   pigment {
  63.     color red 1 green 0 blue 0
  64.   }
  65.   finish {
  66.     diffuse 0.5
  67.     phong 0.5
  68.     phong_size 3
  69.     reflection 0.5
  70.   }
  71. }
  72.  
  73. /* green */
  74.  
  75. #declare My_Texture_4 =
  76. texture {
  77.   pigment {
  78.     color red 0 green 1 blue 0
  79.   }
  80.   finish {
  81.     diffuse 0.5
  82.     phong 0.5
  83.     phong_size 3
  84.     reflection 0.5
  85.   }
  86. }
  87.  
  88. /* blue */
  89.  
  90. #declare My_Texture_5 =
  91. texture {
  92.   pigment {
  93.     color red 0 green 0 blue 1
  94.   }
  95.   finish {
  96.     diffuse 0.5
  97.     phong 0.5
  98.     phong_size 3
  99.     reflection 0.5
  100.   }
  101. }
  102.  
  103. /* yellow */
  104.  
  105. #declare My_Texture_6 =
  106. texture {
  107.   pigment {
  108.     color red 1 green 1 blue 0
  109.   }
  110.   finish {
  111.     diffuse 0.5
  112.     phong 0.5
  113.     phong_size 3
  114.     reflection 0.5
  115.   }
  116. }
  117.  
  118. sphere { <+10, 0, +10>, 4 texture { My_Texture_3 } }
  119.  
  120. sphere { <-10, 0, -10>, 4 texture { My_Texture_6 } }
  121.  
  122. sphere { <+10, 0, -10>, 4 texture { My_Texture_5 } }
  123.  
  124. sphere { <-10, 0, +10>, 4 texture { My_Texture_4 } }
  125.  
  126.  
  127. sphere { <-10, 20, -10>, 4 texture { My_Texture_6 } }
  128.  
  129. sphere { <+10, 20, -10>, 4 texture { My_Texture_6 } }
  130.  
  131. sphere { <-10, 20, +10>, 4 texture { My_Texture_6 } }
  132.  
  133. sphere { <+10, 20, +10>, 4 texture { My_Texture_6 } }
  134.  
  135. cylinder { <-10, 0, -10>, <+10, 0, -10>, 2 texture { My_Texture_2 } }
  136.  
  137. cylinder { <+10, 0, -10>, <+10, 0, +10>, 2 texture { My_Texture_2 } }
  138.  
  139. cylinder { <+10, 0, +10>, <-10, 0, +10>, 2 texture { My_Texture_2 } }
  140.  
  141. cylinder { <-10, 0, +10>, <-10, 0, -10>, 2 texture { My_Texture_2 } }
  142.  
  143. cylinder { <-10, 20, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  144.  
  145. cylinder { <+10, 20, -10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  146.  
  147. cylinder { <+10, 20, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  148.  
  149. cylinder { <-10, 20, +10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  150.  
  151. cylinder { <-10, 0, -10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  152.  
  153. cylinder { <-10, 0, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  154.  
  155. cylinder { <+10, 0, +10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  156.  
  157. cylinder { <+10, 0, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  158.  
  159.