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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Orthographic 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 orthographic projection
  11. // looking at the center of the cage
  12.  
  13. camera {
  14.   orthographic
  15.   location <-20, 30, -40>
  16.   right <50*4/3, 0, 0>      // length determines size of view
  17.   up <0, 50, 0>             // length determines size of view 
  18.   direction <0, 0, 1>       // length isn't used 
  19.   look_at <0, 10, 0>
  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.     refraction 0
  39.     ior 0
  40.   }
  41. }
  42.  
  43. triangle { <50, -4, 50> <-50, -4, 50> <-50, -4, -50> texture { My_Texture_1 } }
  44. triangle { <50, -4, 50> <-50, -4, -50> <50, -4, -50> texture { My_Texture_1 } }
  45.  
  46. #declare My_Texture_2 =
  47. texture {
  48.   pigment {
  49.     color red 1 green 0.9 blue 0.7
  50.   }
  51.   finish {
  52.     diffuse 0.5
  53.     phong 0.5
  54.     phong_size 3
  55.     reflection 0.5
  56.     refraction 0
  57.     ior 0
  58.   }
  59. }
  60.  
  61. /* red */
  62.  
  63. #declare My_Texture_3 =
  64. texture {
  65.   pigment {
  66.     color red 1 green 0 blue 0
  67.   }
  68.   finish {
  69.     diffuse 0.5
  70.     phong 0.5
  71.     phong_size 3
  72.     reflection 0.5
  73.     refraction 0
  74.     ior 0
  75.   }
  76. }
  77.  
  78. /* green */
  79.  
  80. #declare My_Texture_4 =
  81. texture {
  82.   pigment {
  83.     color red 0 green 1 blue 0
  84.   }
  85.   finish {
  86.     diffuse 0.5
  87.     phong 0.5
  88.     phong_size 3
  89.     reflection 0.5
  90.     refraction 0
  91.     ior 0
  92.   }
  93. }
  94.  
  95. /* blue */
  96.  
  97. #declare My_Texture_5 =
  98. texture {
  99.   pigment {
  100.     color red 0 green 0 blue 1
  101.   }
  102.   finish {
  103.     diffuse 0.5
  104.     phong 0.5
  105.     phong_size 3
  106.     reflection 0.5
  107.     refraction 0
  108.     ior 0
  109.   }
  110. }
  111.  
  112. /* yellow */
  113.  
  114. #declare My_Texture_6 =
  115. texture {
  116.   pigment {
  117.     color red 1 green 1 blue 0
  118.   }
  119.   finish {
  120.     diffuse 0.5
  121.     phong 0.5
  122.     phong_size 3
  123.     reflection 0.5
  124.     refraction 0
  125.     ior 0
  126.   }
  127. }
  128.  
  129. sphere { <+10, 0, +10>, 4 texture { My_Texture_3 } }
  130.  
  131. sphere { <-10, 0, -10>, 4 texture { My_Texture_6 } }
  132.  
  133. sphere { <+10, 0, -10>, 4 texture { My_Texture_5 } }
  134.  
  135. sphere { <-10, 0, +10>, 4 texture { My_Texture_4 } }
  136.  
  137.  
  138. sphere { <-10, 20, -10>, 4 texture { My_Texture_6 } }
  139.  
  140. sphere { <+10, 20, -10>, 4 texture { My_Texture_6 } }
  141.  
  142. sphere { <-10, 20, +10>, 4 texture { My_Texture_6 } }
  143.  
  144. sphere { <+10, 20, +10>, 4 texture { My_Texture_6 } }
  145.  
  146. cylinder { <-10, 0, -10>, <+10, 0, -10>, 2 texture { My_Texture_2 } }
  147.  
  148. cylinder { <+10, 0, -10>, <+10, 0, +10>, 2 texture { My_Texture_2 } }
  149.  
  150. cylinder { <+10, 0, +10>, <-10, 0, +10>, 2 texture { My_Texture_2 } }
  151.  
  152. cylinder { <-10, 0, +10>, <-10, 0, -10>, 2 texture { My_Texture_2 } }
  153.  
  154. cylinder { <-10, 20, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  155.  
  156. cylinder { <+10, 20, -10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  157.  
  158. cylinder { <+10, 20, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  159.  
  160. cylinder { <-10, 20, +10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  161.  
  162. cylinder { <-10, 0, -10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
  163.  
  164. cylinder { <-10, 0, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
  165.  
  166. cylinder { <+10, 0, +10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
  167.  
  168. cylinder { <+10, 0, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
  169.  
  170.