home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 0 / torus.pov < prev    next >
Text File  |  1994-07-28  |  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 "shapes.inc"
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. /* Torus having major radius sqrt(40), minor radius sqrt(12) */
  11. object {
  12.    quartic {
  13.       < 1.0   0.0   0.0    0.0     2.0   0.0   0.0   2.0   0.0 -104.0
  14.       0.0   0.0   0.0    0.0     0.0   0.0   0.0   0.0   0.0    0.0
  15.       1.0   0.0   0.0    2.0     0.0  56.0   0.0   0.0   0.0    0.0
  16.       1.0   0.0 -104.0   0.0   784.0 >
  17.    }
  18.    bounded_by {
  19.       sphere { <0 0 0> 10 }
  20.    }
  21.    texture {
  22.       color Red
  23.       phong 1.0
  24.       phong_size 10
  25.       ambient 0.2
  26.       diffuse 0.8
  27.    }
  28.    rotate <-45 0 0>
  29.    translate <0 0 20>
  30.    color Red
  31. }
  32.  
  33. /* Put down checkered floor */
  34. object {
  35.    plane { <0.0  1.0  0.0> -20.0 }
  36.    texture {
  37.       checker colour NavyBlue colour MidnightBlue
  38.       scale < 20.0 20.0 20.0 >
  39.       ambient 0.8
  40.       diffuse 0.2
  41.    }
  42. }
  43.  
  44. camera {
  45.    location  <0.0  2.0 -10.0>
  46.    look_at   <0.0  0.0   0.0>
  47.    direction <0.0  0.0   1.0>
  48.    up        <0.0  1.0   0.0>
  49.    right     <1.33 0.0   0.0>
  50. }
  51.  
  52. object {
  53.    light_source { <50 100 0>
  54.       colour White
  55.    }
  56. }
  57.  
  58. object {
  59.    light_source { <-200 30 -300>
  60.       colour White
  61.    }
  62. }
  63.