home *** CD-ROM | disk | FTP | other *** search
/ Chestnut's Multimedia Mania / MM_MANIA.ISO / graphics / povscn20 / smoke.pov < prev    next >
Text File  |  1993-09-27  |  2KB  |  84 lines

  1. // Persistence Of Vision Raytracer version 2.0 sample file.
  2. // Dark, smokey glass ball 
  3. // Quick example of how to make a "black" filter.
  4. // Just use dark shades of gray.
  5.  
  6. #declare Gray90 = color red .9 green .9 blue .9
  7. #declare Gray80 = color red .8 green .8 blue .8
  8. #declare Gray70 = color red .7 green .7 blue .7
  9. #declare Gray60 = color red .6 green .6 blue .6
  10. #declare Gray40 = color red .4 green .4 blue .4
  11. #declare Gray30 = color red .3 green .3 blue .3
  12.  
  13. #declare White = color red 1 green 1 blue 1
  14. #declare Blue = color blue 1
  15. #declare Red = color red 1
  16. #declare Yellow = color red 1 green 1
  17.  
  18. #declare Black_Smoke =
  19.    pigment {
  20.       bozo
  21.       turbulence 0.2
  22.       color_map {
  23.          [0 0.1  color Gray80 filter 1    color Gray60 filter 0.7]
  24.          [0.1 1  color Gray60 filter 0.7  color Gray30 filter 0.6]
  25.       }
  26.    }
  27.  
  28. #declare Dark_Smoke = 
  29.    pigment {
  30.       bozo
  31.       turbulence 0.2
  32.       color_map {
  33.          [ 0 .1  color Gray90 filter 1    color Gray70 filter 0.8 ]
  34.          [ .1 1  color Gray70 filter 0.8  color Gray40 filter 0.7 ]
  35.       }
  36.    }
  37.  
  38. camera {
  39.    location <0.0, 3.0, -10.0>
  40.    direction <0.0, 0.0, 1.0>
  41.    up  <0.0, 1.0, 0.0>
  42.    right <4/3, 0.0, 0.0>
  43.    look_at <0, 2, 0>
  44. }
  45.  
  46. // Light source
  47. light_source { <10, 20, -30> color White }
  48.  
  49. // Leopard Sky  
  50. sphere { <0, 0, 0>, 100
  51.    pigment {
  52.       leopard
  53.       color_map { [ 0 1 color Yellow color Red] }
  54.       scale 5
  55.    }
  56.    finish {
  57.       ambient 0.8 // make it "glow"
  58.       diffuse 0
  59.    }
  60. }
  61.  
  62. // Black Glass Sphere  
  63. sphere { <0, 3, 0>, 3
  64.    // Try with no refraction or specular 
  65.    pigment { Dark_Smoke }
  66.    finish {
  67.       specular 0.9
  68.       roughness 0.001
  69.       ior 1.51
  70.       refraction 1
  71.    }
  72. }
  73.  
  74.  
  75. // Bright and Hokey checkered floor
  76. plane { y, 0
  77.    pigment {
  78.       checker color White color Blue
  79.       scale 5
  80.    }
  81.    finish { diffuse 0.8 }
  82. }
  83.  
  84.