home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray3a / POV3Demo / Lights / pov / FadeLt2 < prev    next >
Text File  |  1996-03-10  |  2KB  |  85 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Chris Young.
  3. // Light distance attenuation example
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. #declare Dist=27.5
  11.  
  12. camera{location <0,30,-180> direction 3*z look_at -y*5}
  13.  
  14. #default {finish{ambient .2}}
  15.  
  16.  
  17. atmosphere {
  18.   type 1
  19.   samples 40        // Number of samples in first distance interval
  20.   distance 200      // Atmosphere density, similar to fog
  21.   scattering .04    // Reflectivity of atmosphere, determines brightness
  22.   aa_level 8        // Level of binary subdivision in case of aa
  23.   aa_threshold 0.2 // Threshold for aa to push in
  24.   jitter 0.05       // Amount of sample jittering
  25.  }
  26.  
  27.  
  28. union {
  29.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  30.   light_source{
  31.      0 White spotlight radius 15  falloff 18 point_at -y
  32.      area_light x/2,z/2,4,4 adaptive 1 jitter
  33.      fade_distance Dist fade_power 0
  34.   }
  35.   translate <-30,20,0>
  36. }
  37.  
  38. union {
  39.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  40.   light_source{
  41.      0 White spotlight radius 15  falloff 18 point_at -y  
  42.      area_light x/2,z/2,4,4 adaptive 1 jitter 
  43.      fade_distance Dist fade_power 1
  44.   }
  45.   translate <-10,20,0>
  46. }
  47. union {
  48.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  49.   light_source{
  50.      0 White spotlight radius 15  falloff 18 point_at -y  
  51.      area_light x/2,z/2,4,4 adaptive 1 jitter 
  52.      fade_distance Dist fade_power 2
  53.   }
  54.   translate <10,20,0>
  55. }
  56.  
  57. union {
  58.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  59.   light_source{
  60.      0 White spotlight radius 15  falloff 18 point_at -y
  61.      area_light x/2,z/2,4,4 adaptive 1 jitter
  62.      fade_distance Dist fade_power 3
  63.   }
  64.   translate <30,20,0>
  65. }
  66.  
  67. plane {y,-22 pigment{White} hollow }
  68.  
  69. sphere{<-30-6,-20,-4>,2 pigment{White} finish{phong 1}}
  70. sphere{<-10-6,-20,-4>,2 pigment{White} finish{phong 1}}
  71. sphere{< 10-6,-20,-4>,2 pigment{White} finish{phong 1}}
  72. sphere{< 30-6,-20,-4>,2 pigment{White} finish{phong 1}}
  73.  
  74. sphere{<-30-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  75. sphere{<-10-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  76. sphere{< 10-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  77. sphere{< 30-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  78.  
  79. sphere{<-30+2,5,0>,2 pigment{White} finish{phong 1}}
  80. sphere{<-10+2,5,0>,2 pigment{White} finish{phong 1}}
  81. sphere{< 10+2,5,0>,2 pigment{White} finish{phong 1}}
  82. sphere{< 30+2,5,0>,2 pigment{White} finish{phong 1}}
  83.  
  84. light_source {<-100,100,-250> White*.1 atmosphere off }
  85.