home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / MATH.ZIP / MONKEY.POV < prev    next >
Text File  |  1992-07-03  |  1KB  |  62 lines

  1. // Persistence Of Vision raytracer version 1.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. #declare Basic_Saddle =
  12. quartic {
  13.    < 0.0   0.0   0.0   1.0  0.0   0.0   0.0   0.0   0.0  0.0
  14.    0.0   0.0  -3.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   0.0   0.0   0.0   0.0  0.0
  16.    0.0   0.0   0.0  -1.0  0.0 >
  17. }
  18.  
  19. #declare Unit_Cube =
  20. intersection {
  21.    plane { < 1  0  0> 1 texture { color Clear } }
  22.    plane { <-1  0  0> 1 texture { color Clear } }
  23.    plane { < 0  1  0> 1 texture { color Clear } }
  24.    plane { < 0 -1  0> 1 texture { color Clear } }
  25.    plane { < 0  0  1> 1 texture { color Clear } }
  26.    plane { < 0  0 -1> 1 texture { color Clear } }
  27. }
  28.  
  29. /* Monkey Saddle */
  30. object {
  31.    intersection {
  32.       quartic { Basic_Saddle
  33.          texture {
  34.             color Red
  35.             specular 1.0
  36.             roughness 0.05
  37.             ambient 0.2
  38.             diffuse 0.8
  39.          }
  40.       }
  41.       intersection { Unit_Cube scale <2 2 2> }
  42.    }
  43.    bounded_by {
  44.       intersection { Unit_Cube scale <2.5 2.5 2.5> }
  45.    }
  46.    rotate <0 20 0>
  47.    rotate <-30 0 0>
  48. }
  49.  
  50. camera {
  51.    location  <0.0  0.0 -10.0>
  52.    right     <1.33 0.0   0.0>
  53.    up        <0.0  1.0   0.0>
  54.    direction <0.0  0.0   1.0>
  55. }
  56.  
  57. object {
  58.    light_source { <200 30 -300>
  59.       colour White
  60.    }
  61. }
  62.