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

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