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

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