home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level1 / dish.pov < prev    next >
Text File  |  1993-09-28  |  2KB  |  72 lines

  1. // Persistence Of Vision raytracer version 2.0, sample file.
  2.  
  3. // By Aaron a. Collins
  4.  
  5. /* Scene Description of a Satellite Dish by Aaron A. Collins */
  6. /* Made to test the quadric "Paraboloid" and "Cone" Shapes   */ 
  7.  
  8. #include "shapes.inc"
  9. #include "colors.inc"
  10.  
  11. camera {
  12.    location  <0, 0, -70>
  13.    direction <0, 0,   1>
  14.    up        <0, 1,   0>
  15.    right   <4/3, 0,   0>
  16. }
  17.  
  18. /* The basic dish */
  19. union {
  20.    intersection {
  21.       object { Paraboloid_Y scale <30, 20, 30> }
  22.       object { Paraboloid_Y scale <29, 19, 29> inverse }
  23.       plane  { y, 20 }
  24.  
  25.       pigment { color red 0.8 green 0.2 blue 0.2 }
  26.       finish {
  27.          ambient 0.2
  28.          diffuse 0.8
  29.          phong 1.0
  30.          phong_size 10
  31.       }
  32.    }
  33.  
  34.    /* The lna thingy at the focal point */
  35.    union {
  36.       object { QCone_Y
  37.          scale <1, 10, 1> translate y*31
  38.          clipped_by { plane { y, 31} plane {-y,  0} }
  39.       }
  40.       sphere { <0, 30, 0>, 2}
  41.  
  42.       pigment {color red 0 green 0.2 blue 0.8}
  43.       finish {
  44.          ambient 0.2
  45.          diffuse 0.8
  46.          phong 1.0
  47.          phong_size 30
  48.       }
  49.    }
  50.  
  51.    /* The equatorial mount */
  52.    object { Paraboloid_Y
  53.       rotate x*180
  54.       scale <30, 60, 30>
  55.       texture {
  56.          pigment { color red 0 green 0.8 blue 0.2 }
  57.          finish {
  58.             ambient 0.2
  59.             diffuse 0.8
  60.             phong 1.0
  61.             phong_size 30
  62.          }
  63.       }
  64.    }
  65.  
  66.    rotate <-30, -30, 0>
  67. }
  68.  
  69. light_source {<100, 120, -130> colour White}
  70.  
  71. light_source {<-100, 100, -130> colour White}
  72.