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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Weighted averaged pigments example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. camera { 
  11.   location <0,3,-31>
  12.   direction 3*z
  13.  
  14. plane { y, -1.01  pigment {White}}
  15.  
  16. plane {  z, 4.01  pigment {White}}
  17.  
  18. light_source { <500, 200, -500> White}
  19.  
  20. #declare Thing = plane{z,0.1 clipped_by{box{-2,2}}}
  21. #declare Filt_Stripes=
  22.   color_map {
  23.     [1/7 rgbf<1,1,1,1>]
  24.     [1/7 rgbf<1,1,0,1>]
  25.     [2/7 rgbf<1,1,0,1>]
  26.     [2/7 rgbf<0,1,0,1>]
  27.     [3/7 rgbf<0,1,0,1>]
  28.     [3/7 rgbf<0,1,1,1>]
  29.     [4/7 rgbf<0,1,1,1>]
  30.     [4/7 rgbf<0,0,1,1>]
  31.     [5/7 rgbf<0,0,1,1>]
  32.     [5/7 rgbf<1,0,1,1>]
  33.     [6/7 rgbf<1,0,1,1>]
  34.     [6/7 rgbf<1,0,0,1>]
  35.   }
  36.  
  37. #declare Trans_Stripes=
  38.   color_map {
  39.     [1/7 rgbt<1,1,1,0.5>]
  40.     [1/7 rgbt<1,1,0,0.5>]
  41.     [2/7 rgbt<1,1,0,0.5>]
  42.     [2/7 rgbt<0,1,0,0.5>]
  43.     [3/7 rgbt<0,1,0,0.5>]
  44.     [3/7 rgbt<0,1,1,0.5>]
  45.     [4/7 rgbt<0,1,1,0.5>]
  46.     [4/7 rgbt<0,0,1,0.5>]
  47.     [5/7 rgbt<0,0,1,0.5>]
  48.     [5/7 rgbt<1,0,1,0.5>]
  49.     [6/7 rgbt<1,0,1,0.5>]
  50.     [6/7 rgbt<1,0,0,0.5>]
  51.   }
  52.  
  53. #declare Stripes=
  54.   color_map {
  55.     [1/7 rgb<1,1,1>]
  56.     [1/7 rgb<1,1,0>]
  57.     [2/7 rgb<1,1,0>]
  58.     [2/7 rgb<0,1,0>]
  59.     [3/7 rgb<0,1,0>]
  60.     [3/7 rgb<0,1,1>]
  61.     [4/7 rgb<0,1,1>]
  62.     [4/7 rgb<0,0,1>]
  63.     [5/7 rgb<0,0,1>]
  64.     [5/7 rgb<1,0,1>]
  65.     [6/7 rgb<1,0,1>]
  66.     [6/7 rgb<1,0,0>]
  67.   }
  68.  
  69.  
  70. object{Thing
  71.   pigment {
  72.     average
  73.     pigment_map {
  74.       [gradient x color_map{Stripes}]
  75.       [gradient y color_map{Stripes}]
  76.     }
  77.   }
  78.   translate <-3,5.5,0>
  79. }
  80.  
  81. object{Thing
  82.   pigment {
  83.     average
  84.     pigment_map {
  85.       [gradient x color_map{Filt_Stripes}]
  86.       [gradient y color_map{Filt_Stripes}]
  87.     }
  88.   }
  89.   translate <3,5.5,0>
  90. }
  91.  
  92. object{Thing
  93.   pigment {
  94.     average
  95.     pigment_map {
  96.       [3.0 gradient x color_map{Stripes}]
  97.       [1.0 gradient y color_map{Stripes}]
  98.     }
  99.   }
  100.   translate <-3,1,0>
  101. }
  102.  
  103. object{Thing
  104.   pigment {
  105.     average
  106.     pigment_map {
  107.       [gradient x color_map{Trans_Stripes}]
  108.       [gradient y color_map{Trans_Stripes}]
  109.     }
  110.   }
  111.   translate <3,1,0>
  112. }
  113.