home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povscn20 / piriform.pov < prev    next >
Text File  |  1993-09-27  |  1KB  |  60 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. /* Piriform - looks a bit like a Hershey's Kiss along the x axis...*/
  12. quartic {
  13.    < 4.0,  0.0,  0.0,  -4.0, 0.0,  0.0,  0.0,  0.0,  0.0, 0.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 { color red 0.7 green 0.0 blue 0.0 }
  22.       finish {
  23.          phong 1.0
  24.          phong_size 20
  25.          ambient 0.2
  26.          diffuse 0.8
  27.       }
  28.    }
  29.  
  30.    translate <0, 0.5, 2>
  31. }
  32.  
  33. /* Put down checkered floor */
  34. plane {
  35.    y, -10.0
  36.  
  37.    texture {
  38.       pigment {
  39.          checker colour red 0.137255 green 0.137255 blue 0.556863
  40.                  colour red 0.184314 green 0.184314 blue 0.309804
  41.          scale 20.0
  42.       }
  43.       finish {
  44.          ambient 0.8
  45.          diffuse 0.2
  46.       }
  47.    }
  48. }
  49.  
  50. camera {
  51.    location  <0.0, 2.0, -2.0>
  52.    up        <0.0, 1.0, 0.0>
  53.    right     <4/3, 0.0, 0.0>
  54.    look_at   <0.0, 0.0, 1.0>
  55. }
  56.  
  57. light_source { <200, 30, -300> colour White }
  58.  
  59. light_source { <-200, 30, -300> colour White }
  60.