home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / povscn / math / steiner.pov < prev    next >
Text File  |  1997-12-12  |  995b  |  47 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // Sample quartic file 
  4. // by Alexander Enzmann
  5.  
  6. #include "shapes.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. #include "shapesq.inc"
  10.  
  11. // Get the declaration of the coordinate axes 
  12. #include "axisbox.inc"
  13.  
  14. // Declare the orientation of the surface 
  15. #declare Steiner_Orientation = <50, -20, 0>
  16.  
  17. object {
  18.    Steiner_Surface
  19.  
  20.    texture { pigment { Red } finish { phong 1.0 } }
  21.  
  22.    bounded_by { sphere { <0, 0, 0>, 1 } }
  23.  
  24.    scale 6
  25.    rotate Steiner_Orientation
  26. }
  27.  
  28. // Show coordinate axes 
  29. object {
  30.    Axes
  31.    rotate Steiner_Orientation
  32. }
  33.  
  34. // The viewer is eight units back along the z-axis. 
  35. camera {
  36.    location  <0.0, 0.0, -8.0>
  37.    right     <4/3, 0.0,  0.0>
  38.    up        <0.0, 1.0,  0.0>
  39.    direction <0.0, 0.0,  1.0>
  40. }
  41.  
  42. // Put in some light sources so that highlighting can give visual clues
  43. //  as to the shape of the surface. 
  44. light_source { <200, 100, -300> colour White }
  45.  
  46. light_source { <-200, 100, -300> colour White }
  47.