home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / objects / lathe1a.pov < prev    next >
Text File  |  1997-12-12  |  1KB  |  70 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.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. background { color MidnightBlue }
  11.  
  12. camera {
  13.   location <0, 7, -10>
  14.   right <4/3, 0, 0>
  15.   up <0, 1, 0>
  16.   sky <0, 1, 0>
  17.   direction <0, 0, 1.21>
  18.   look_at <0, 0, 0>
  19. }
  20.  
  21. light_source { <5, 20, -10> colour White }
  22.  
  23. plane { y, -6
  24.    pigment {
  25.       checker colour Blue colour Green 
  26.       scale 5
  27.    }
  28.    finish {
  29.       ambient 0.2
  30.       diffuse 0.8
  31.    }
  32. }
  33.  
  34. difference {
  35.   lathe {
  36.     linear_spline
  37.   
  38.     12,
  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.   
  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.