home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray / !POVscene / math / pov / tcubic < prev    next >
Text File  |  1992-09-27  |  1KB  |  55 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By Alexander Enzmann
  4. /* sample quartic scene file written by Alexander Enzmann */
  5.  
  6. #include "shapes"
  7. #include "colors"
  8. #include "textures"
  9.  
  10. /* Cubic curve - can make a nice teardrop by cleverly adding a clipping plane */
  11. object {
  12.    intersection {
  13.       quartic {
  14.          < 0.0   0.0   0.0   -0.5  0.0   0.0   0.0   0.0   0.0 -0.5
  15.          0.0   0.0   0.0    0.0  0.0   0.0   0.0   0.0   0.0  0.0
  16.          0.0   0.0   0.0    0.0  0.0   1.0   0.0   0.0   0.0  0.0
  17.          0.0   0.0   1.0    0.0  0.0 >
  18.          texture {
  19.             color Red
  20.             phong 1.0
  21.             diffuse 0.8
  22.             ambient 0.2
  23.          }
  24.       }
  25.       sphere { <0 0 0> 2
  26.          texture {
  27.             color Clear
  28.          }
  29.       }
  30.    }
  31.    bounded_by {
  32.       sphere { <0 0 0> 2.2 }
  33.    }
  34.    rotate <0 20 0>
  35. }
  36.  
  37. camera {
  38.    location  <0.0  0.0 -5.0>
  39.    direction <0.0  0.0  1.0>
  40.    up        <0.0  1.0  0.0>
  41.    right     <1.33 0.0  0.0>
  42. }
  43.  
  44. object {
  45.    light_source { <200 30 -300>
  46.       colour White
  47.    }
  48. }
  49.  
  50. object {
  51.    light_source { <-200 30 -300>
  52.       colour White
  53.    }
  54. }
  55.