home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / OBJECTS / LATHE1A.POV < prev    next >
Text File  |  1999-10-30  |  1KB  |  69 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.  
  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.   lathe {
  35.     linear_spline
  36.   
  37.     12,
  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.   
  44.     pigment {
  45.       color Red
  46.     }
  47.     finish {
  48.       ambient 0.1
  49.       diffuse 0.6
  50.       phong 0.6
  51.       phong_size 7
  52. //      reflection 0.3
  53.     }
  54.   }
  55.   box { 
  56.     <0, -5, 0>, <5, 5, -5> 
  57.     rotate <0, 30, 0> 
  58.     pigment {
  59.       color Green
  60.     }
  61.     finish {
  62.       ambient 0.1
  63.       diffuse 0.6
  64.       phong 0.6
  65.       phong_size 7
  66.     }
  67.   }
  68. }
  69.