home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / MATH.ZIP / TROUGH.POV < prev    next >
Text File  |  1992-07-03  |  1KB  |  63 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 "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. #declare Unit_Cube =
  19. intersection {
  20.    plane { < 1  0  0> 1 texture { color Clear } }
  21.    plane { <-1  0  0> 1 texture { color Clear } }
  22.    plane { < 0  1  0> 1 texture { color Clear } }
  23.    plane { < 0 -1  0> 1 texture { color Clear } }
  24.    plane { < 0  0  1> 1 texture { color Clear } }
  25.    plane { < 0  0 -1> 1 texture { color Clear } }
  26. }
  27.  
  28. /* Crossed Trough */
  29. object {
  30.    intersection {
  31.       quartic { Quartic_Saddle
  32.          texture {
  33.             color Red
  34.             specular 0.8
  35.             roughness 0.005
  36.             ambient 0.3
  37.             diffuse 0.6
  38.          }
  39.       }
  40.       intersection { Unit_Cube }
  41.    }
  42.    bounded_by {
  43.       intersection { Unit_Cube scale <1.5 1.5 1.5> }
  44.    }
  45.    scale <2 2 2> 
  46.    rotate <0 -10 0>
  47.    rotate <-60 0 0>
  48.    translate <0 0 4>
  49. }
  50.  
  51. camera {
  52.    location  <0.0  0.0 -4.0>
  53.    right     <1.33 0.0  0.0>
  54.    up        <0.0  1.0  0.0>
  55.    direction <0.0  0.0  1.0>
  56. }
  57.  
  58. object {
  59.    light_source { <200 30 -300>
  60.       colour White
  61.    }
  62. }
  63.