home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / atsirds / depth5.pov < prev    next >
Text File  |  1994-08-11  |  1KB  |  54 lines

  1. // SIRDS z-depth data with POV-Ray #5
  2. // )C( 8/1994 Christian Perle
  3.  
  4. #include "colors.inc"
  5.  
  6. #declare Frontview = camera {
  7.   location  <0, 0, -6>
  8.   direction <0, 0, 2.5>
  9.   up        <0, 1, 0>
  10.   right     <640/470, 0, 0>
  11.   look_at   <0, 0, 2>
  12. }
  13.  
  14. #declare Sideview = camera {
  15.   location  <6, 0, 0>
  16.   direction <0, 0, 1.5>
  17.   up        <0, 1, 0>
  18.   right     <640/470, 0, 0>
  19.   look_at   <0, 0, 1>
  20. }
  21.  
  22. camera { Frontview }
  23.  
  24. #declare Halftor = intersection {
  25.   torus { 1, .2 rotate 90*z }
  26.   plane { y, 0 }
  27. }
  28.  
  29. #declare Thing = union {
  30.   object { Halftor translate -1*x }
  31.   object { Halftor translate 1*x }
  32.   object { Halftor rotate 180*x rotate 90*y translate -1*z }
  33.   object { Halftor rotate 180*x rotate 90*y translate 1*z }
  34.   sphere { <0, 0, 0>, .4 }
  35.   bounded_by { box { <-1.21, -1.21, -1.21>, <1.21, 1.21, 1.21> } }
  36. }
  37.  
  38. object {
  39.   Thing
  40.   scale .62
  41.   rotate <-20, 30, 0>
  42.   translate 1*z
  43.   pigment {
  44.     gradient z
  45.     translate -10*z
  46.     color_map {
  47.       [0 color White]
  48.       [1 color Black]
  49.     }
  50.     scale 2
  51.   }
  52.   finish { ambient 1 diffuse 0 }
  53. }
  54.