home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 279 / POVSCN20.ZIP / FILTFUN.POV < prev    next >
Text File  |  1993-09-28  |  2KB  |  80 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2. // Fun with filter (and other neat tricks).
  3.  
  4. #include "shapes.inc"
  5. #include "colors.inc"
  6.  
  7. camera {
  8.    location  <0, 2, -4.5>
  9.    direction <0, 0,  1>
  10.    up  <0, 1, 0>
  11.    right <4/3, 0, 0>
  12.    look_at <0, 0.4, 0>
  13. }
  14.  
  15. // Floor, with phoney gray "planks"
  16. plane { y, 0
  17.  
  18.    pigment {
  19.       gradient x
  20.       color_map {
  21.          [0,    0.25 color Gray      color Gray]
  22.          [0.25, 0.50 color DimGray   color LightGray]
  23.          [0.50, 0.75 color LightGray color Gray]
  24.          [0.75, 1    color Gray      color Gray]
  25.       }
  26.       scale <0.45, 1, 1>
  27.    }
  28.    finish{ambient 0.1 diffuse 0.7}
  29. }
  30.  
  31. //  Note: Clear = color White filter 1
  32.  
  33. // A blobby sphere
  34. sphere  { <0, 1, -1.5>, 1
  35.     pigment {
  36.       bozo
  37.       turbulence 0.5
  38.       octaves 1
  39.       scale 0.2
  40.       color_map {
  41.          [0,   0.5 color red 1 filter 0.5 color red 1 filter 1]
  42.          [0.5, 1   color Clear           color Clear]
  43.       }
  44.    }
  45.    finish {ambient 0.15  diffuse 0.7}
  46. }
  47.  
  48. // A sliced green box
  49. object { UnitBox
  50.    rotate 45*y
  51.    translate <-4, 1, 4>
  52.  
  53.    pigment {
  54.       gradient y
  55.       color_map {
  56.          [0,   0.5 color Green color Green]
  57.          [0.5, 1   color Clear color Clear]
  58.       }
  59.       scale 0.5
  60.    }
  61. }
  62.  
  63. // A yellow, swirly finite cylinder
  64. object { Disk_Y
  65.    translate <4, 1, 4>
  66.  
  67.    pigment {
  68.       gradient y
  69.       turbulence 2
  70.       octaves 1
  71.       color_map {
  72.          [0,   0.5 color Yellow color Yellow]
  73.          [0.5, 1   color Clear  color Clear]
  74.       }
  75.       scale 0.5
  76.    }
  77. }
  78.  
  79. light_source { <10, 12, -40> colour White }
  80.