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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Demo showing several surfaces of revolution ... Dieter Bayer, June 1994
  3. // dmf -- changed glass textures to solid pigments for speed's sake.
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. camera {
  12.   location <40, 40, -80>
  13.   look_at <0, 5, 0>
  14.   angle 26
  15. }
  16.  
  17. light_source { <90, 30, -60> colour White }
  18.  
  19. light_source { <-90, 100, -60> colour White
  20.     spotlight
  21.     point_at <0,0,0>
  22.     radius 45
  23.     falloff 60
  24. }
  25.  
  26. background { color SkyBlue }
  27.  
  28. plane { y, 0
  29.    pigment { rgb <0.75, 0.5, 1.0> }
  30.    finish {
  31.       ambient 0.2
  32.       diffuse 0.8
  33.    }
  34. }
  35.  
  36. #declare shape1 =
  37. lathe {
  38.   cubic_spline
  39.   12,
  40.   <0.000000, 0.000000>,
  41.   <0.000000, 0.000000>,
  42.   <0.277027, 0.000000>,
  43.   <0.277027, 0.000000>,
  44.   <0.064189, 0.081081>,
  45.   <0.057432, 0.256757>,
  46.   <0.260135, 0.422297>,
  47.   <0.152027, 1.000000>,
  48.   <0.128378, 0.996622>,
  49.   <0.222973, 0.452703>,
  50.   <0.000000, 0.307432>,
  51.   <0.023649, 0.523649>
  52.  
  53.   scale <1.5, 1.5, 1.5>
  54. }
  55.  
  56. #declare shape2 =
  57. lathe {
  58.   cubic_spline
  59.   13,
  60.   <0.000000, 0.000000>,
  61.   <0.000000, 0.000000>,
  62.   <0.172414, 0.013793>,
  63.   <0.203448, 0.096552>,
  64.   <0.210345, 0.203448>,
  65.   <0.210345, 0.634483>,
  66.   <0.210345, 1.000000>,
  67.   <0.196552, 1.000000>,
  68.   <0.193103, 0.651724>,
  69.   <0.182759, 0.206897>,
  70.   <0.151724, 0.096552>,
  71.   <0.000000, 0.065517>,
  72.   <0.000000, 0.065517>
  73.  
  74.   scale <2, 1.5, 2>
  75. }
  76.  
  77.  
  78. #declare shape3 =
  79. lathe {
  80.   cubic_spline
  81.   13,
  82.   <0.000000, 0.000000>,
  83.   <0.000000, 0.000000>,
  84.   <0.193050, 0.003861>,
  85.   <0.193050, 0.019305>,
  86.   <0.073359, 0.038610>,
  87.   <0.027027, 0.135135>,
  88.   <0.023166, 0.559846>,
  89.   <0.100386, 0.679537>,
  90.   <0.359073, 0.996139>,
  91.   <0.335907, 1.000000>,
  92.   <0.096525, 0.725869>,
  93.   <0.000000, 0.691120>,
  94.   <0.000000, 0.691120>
  95.  
  96.   scale <1.5, 1.5, 1.5>
  97. }
  98.  
  99.  
  100. #declare shape4 =
  101. lathe {
  102.   cubic_spline
  103.   12,
  104.   <0.000000, 0.000000>,
  105.   <0.000000, 0.000000>,
  106.   <0.460606, 0.036364>,
  107.   <0.515152, 0.303030>,
  108.   <0.157576, 0.660606>,
  109.   <0.248485, 1.000000>,
  110.   <0.230303, 1.000000>,
  111.   <0.139394, 0.660606>,
  112.   <0.496970, 0.296970>,
  113.   <0.448485, 0.054545>,
  114.   <0.000000, 0.018182>,
  115.   <0.000000, 0.018182>
  116.  
  117.   scale <1.5, 1.5, 1.5>
  118. }
  119.  
  120. object {
  121.   shape1
  122.   texture {
  123.     pigment { Red }
  124.     finish { Shiny metallic }
  125.   }
  126.   scale <10, 10, 10>
  127.   translate <-10, 0.002, 10>
  128. }
  129.  
  130. object {
  131.   shape2
  132.   texture {
  133.     pigment { White }
  134.     finish { Shiny metallic }
  135.   }
  136.   scale <8, 8, 8>
  137.   translate <10, 0.002, 10>
  138. }
  139.  
  140. object {
  141.   shape3
  142.   texture {
  143.     pigment { Yellow }
  144.     finish { Shiny metallic }
  145.   }
  146.   scale <10, 10, 10>
  147.   translate <-10, 0.002, -10>
  148. }
  149.  
  150. object {
  151.   shape4
  152.   texture {
  153.     pigment { Green }
  154.     finish { Shiny metallic }
  155.   }
  156.   scale <10, 10, 10>
  157.   translate <10, 0.002, -10>
  158. }
  159.  
  160.