home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povscn20 / lemnisca.pov < prev    next >
Text File  |  1993-09-27  |  1KB  |  58 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Alexander Enzmann
  4.  
  5. /* sample quartic scene file written by Alexander Enzmann */
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. /* Lemniscate of Gerono */
  12. quartic {
  13.    < 1.0,  0.0,  0.0,   0.0, 0.0,  0.0,  0.0,  0.0,  0.0, -1.0,
  14.      0.0,  0.0,  0.0,   0.0, 0.0,  0.0,  0.0,  0.0,  0.0,  0.0,
  15.      0.0,  0.0,  0.0,   0.0, 0.0,  1.0,  0.0,  0.0,  0.0,  0.0,
  16.      0.0,  0.0,  1.0,   0.0, 0.0 >
  17.  
  18.    bounded_by { sphere { <0, 0, 0>, 2 } }
  19.  
  20.    texture {
  21.       pigment { Red }
  22.       finish {
  23.          phong 1.0
  24.          phong_size 10
  25.          ambient 0.2
  26.          diffuse 0.8
  27.       }
  28.    }
  29.    rotate -45*y
  30.    translate 2*z
  31. }
  32.  
  33. /* Put down checkered floor */
  34. plane {
  35.    y, -20.0
  36.    texture {
  37.       pigment {
  38.          checker colour NavyBlue colour MidnightBlue
  39.          scale 20.0
  40.       }
  41.       finish {
  42.          ambient 0.8
  43.          diffuse 0.2
  44.       }
  45.    }
  46. }
  47.  
  48. camera {
  49.    location  <0.0, 1.0, -2.0>
  50.    up          <0.0, 1.0,  0.0>
  51.    right     <4/3, 0.0,  0.0>
  52.    look_at   <0.0, 0.0,  5.0>
  53. }
  54.  
  55. light_source { <200, 30, -300> color White }
  56.  
  57. light_source { <-200, 30, -300> color White }
  58.