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

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Alexander Enzmann
  4. /* sample quartic scene file written by Alexander Enzmann */
  5.  
  6. #include "colors.inc"
  7. #include "shapes.inc"
  8. #include "textures.inc"
  9.  
  10. #declare Quartic_Saddle =
  11. quartic {
  12.  < 0.0,  0.0,  0.0,  0.0, 0.0,  0.0,  0.0,  4.0,  0.0,  0.0,
  13.    0.0,  0.0,  0.0,  0.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, -1.0,
  15.    0.0,  0.0,  0.0,  0.0, 0.0 >
  16. }
  17.  
  18.  
  19. /* Crossed Trough */
  20. intersection {
  21.    object {
  22.       Quartic_Saddle
  23.       texture {
  24.          pigment { Red }
  25.          finish {
  26.             specular 0.8
  27.             roughness 0.005
  28.             ambient 0.3
  29.             diffuse 0.6
  30.          }
  31.       }
  32.    }
  33.  
  34.    object { UnitBox texture { pigment {Clear} } }
  35.  
  36.    bounded_by { object { UnitBox scale 1.5 } }
  37.  
  38.    scale 2
  39.    rotate -10*y
  40.    rotate -60*x
  41.    translate 4*z
  42. }
  43.  
  44. camera {
  45.    location  <0.0, 0.0, -4.0>
  46.    right     <4/3, 0.0,  0.0>
  47.    up        <0.0, 1.0,  0.0>
  48.    direction <0.0, 0.0,  1.0>
  49. }
  50.  
  51. light_source { <200, 30, -300> colour White }
  52.