home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / OBJECTS / LATHE1B.POV < prev    next >
Text File  |  1999-10-30  |  1KB  |  70 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2. // Demo showing a lathe with quadratic interpolation ... Dieter Bayer, June 1994
  3.  
  4. global_settings { assumed_gamma 2.2 }
  5.  
  6. #include "colors.inc"
  7.  
  8. background { color MidnightBlue }
  9.  
  10. camera {
  11.   location <0, 7, -10>
  12.   right <4/3, 0, 0>
  13.   up <0, 1, 0>
  14.   sky <0, 1, 0>
  15.   direction <0, 0, 1.21>
  16.   look_at <0, 0, 0>
  17. }
  18.  
  19. light_source { <5, 20, -10> colour White }
  20.  
  21. plane { y, -6
  22.    pigment {
  23.       checker colour Blue colour Green 
  24.       scale 5
  25.    }
  26.    finish {
  27.       ambient 0.2
  28.       diffuse 0.8
  29.    }
  30. }
  31.  
  32. difference
  33. {
  34.   lathe {
  35.     quadratic_spline
  36.  
  37.     13,
  38.   
  39.     <2, 1>,
  40.     <2, -1>, <3, -1>, <3.4, -2>, <4, -1.1>, <3.6, -0.9>,
  41.     <2.6, 0>,
  42.     <3.6.9>, <4, 1.1>, <3.4, 2>, <3, 1>, <2, 1>,
  43.     <2, -1>
  44.  
  45.     pigment {
  46.       color Red
  47.     }
  48.     finish {
  49.       ambient 0.1
  50.       diffuse 0.6
  51.       phong 0.6
  52.       phong_size 7
  53. //      reflection 0.3
  54.     }
  55.   }
  56.   box { 
  57.     <0, -5, 0>, <5, 5, -5> 
  58.     rotate <0, 30, 0> 
  59.     pigment {
  60.       color Green
  61.     }
  62.     finish {
  63.       ambient 0.1
  64.       diffuse 0.6
  65.       phong 0.6
  66.       phong_size 7
  67.     }
  68.   }
  69. }
  70.