home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / LEVEL3.ZIP / WEALTH.POV < prev    next >
Text File  |  1992-07-03  |  3KB  |  154 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By Tom Price
  4. // Modification to two-layer wood texture by Dan Farmer 01/92
  5. // Image should be run at 640x480 or greater to take full advantage of
  6. // the wood texture, preferably with a rather tight anti-aliasing threshold.
  7. // Also commented out the random dithering values and bounded the coin
  8. // object.
  9.  
  10. #include "colors.inc"
  11. #include "shapes.inc"
  12. #include "textures.inc"
  13.  
  14. // a dark wood with a greenish hue to it
  15. #declare New_Dark_Wood1 = texture {
  16.    wood
  17.    turbulence 0.02
  18.    colour_map {
  19.       [0.0 0.8  colour red  0.42857 green 0.23810 blue 0.04762
  20.       colour red  0.42857 green 0.23810 blue 0.04762]
  21.       [0.8 1.01 colour red 0.4 green 0.333 blue 0.066
  22.       colour red 0.2 green 0.033 blue 0.033]
  23.    }
  24. }
  25.  
  26. // Overlaying woodgrain
  27. #declare New_Dark_Wood2 = texture {
  28.    wood
  29.    turbulence 0.022
  30.    colour_map {
  31.       [0.0 0.5  colour Clear  colour Clear]
  32.       [0.5 1.01 colour red 0.4 green 0.333 blue 0.066 alpha 0.5
  33.       colour red 0.2 green 0.033 blue 0.033 alpha 0.25]
  34.    }
  35. }
  36.  
  37. camera {
  38.    location <0.0 75.0 -100.0>
  39.    direction <0.0 -0.5 1.0>
  40.    up <0.0 1.0 0.0>
  41.    right <1.333 0.0 0.0>
  42. }
  43.  
  44. object {
  45.    quadric { Plane_XZ translate <0.0 -10.0 0.0> }
  46.  
  47.    texture {
  48.  
  49.       New_Dark_Wood1
  50.       scale <.25 .25 1>
  51.       rotate <0 90 1>
  52.  
  53.       ambient 0.8
  54.       diffuse 0.2
  55.       reflection 0.4
  56.       brilliance 3.0
  57.    }
  58.  
  59.    texture {
  60.       New_Dark_Wood2
  61.       scale <.25 .25 1>
  62.       rotate <0 90 1.5>
  63.    }
  64.    color Brown
  65. }
  66.  
  67. object {
  68.    quadric { Plane_XZ translate <0.0 200.0 0.0> }
  69.    texture {
  70.       color blue 0.5 red 0.2 green 0.2
  71.       ambient 0.5
  72.       diffuse 0.5
  73.    }
  74. }
  75.  
  76. object {
  77.    light_source { <60.0 100.0 -110.0>
  78.       color White
  79.    }
  80. }
  81.  
  82. object {
  83.    light_source { <-60.0 100.0 -110.0>
  84.       color LightGray
  85.    }
  86. }
  87.  
  88.  
  89. #declare Coin = object {
  90.    intersection {
  91.       quadric { Cylinder_Y scale <20.0 1.0 20.0> }
  92.       quadric { Plane_XZ translate <0.0 1.0 0.0> }
  93.       quadric { Plane_XZ translate <0.0 -1.0 0.0> inverse }
  94.    }
  95.    bounded_by {
  96.       sphere { <0 0 0> 21}
  97.    }
  98.  
  99.    texture { 
  100.       ambient 0.2  diffuse 0.6
  101.       color red 1.0 green 0.89 blue 0.55
  102.       reflection 0.6
  103.       brilliance 4.0
  104.       specular 0.5
  105.       metallic
  106.    }
  107.  
  108.    color red 1.0 green 0.89 blue 0.55
  109. }
  110.  
  111. object { Coin
  112.    rotate <-15.0 0.0 -2.0>
  113.    translate <-27.0 -2.0 -3.0>
  114. }
  115.  
  116. object { Coin
  117.    rotate <-15.0 0.0 0.0>
  118.    translate <-28.0 3.0 2.0>
  119. }
  120. object { Coin
  121.    rotate <-15.0 0.0 0.0>
  122.    translate <-30.0 10.0 0.0>
  123. }
  124. object { Coin
  125.    rotate <-15.0 0.0 0.0>
  126.    translate <-29.0 20.0 -2.0>
  127. }
  128. object { Coin
  129.    rotate <-15.0 0.0 -10.0>
  130.    translate <-31.0 30.0 3.0>
  131. }
  132. object { Coin
  133.    rotate <-15.0 0.0 0.0>
  134.    translate <-26.0 40.0 5.0>
  135. }
  136. object { Coin
  137.    rotate <-25.0 0.0 15.0>
  138.    translate <-23.0 50.0 8.0>
  139. }
  140.  
  141. // A reflective sphere
  142. object {
  143.    quadric { Ellipsoid scale <35.0 35.0 35.0> }
  144.    translate <40.0 25.0 40.0>
  145.    texture {
  146.       color White
  147.       ambient 0.1
  148.       diffuse 0.3
  149.       reflection 0.95
  150.       brilliance 5.0
  151.    }
  152.    color White
  153. }
  154.