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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Demo showing a lathe with cubic 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.     cubic_spline
  37.  
  38.     14,
  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.     <3, -1>
  46.  
  47.     pigment {
  48.       color Red
  49.     }
  50.     finish {
  51.       ambient 0.1
  52.       diffuse 0.6
  53.       phong 0.6
  54.       phong_size 7
  55. //      reflection 0.3
  56.     }
  57.   }
  58.   box { 
  59.     <0, -5, 0>, <5, 5, -5> 
  60.     rotate <0, 30, 0> 
  61.     pigment {
  62.       color Green
  63.     }
  64.     finish {
  65.       ambient 0.1
  66.       diffuse 0.6
  67.       phong 0.6
  68.       phong_size 7
  69.     }
  70.   }
  71. }
  72.