POV-Ray : Newsgroups : povray.unofficial.patches : Mini Patch Bug ? : Mini Patch Bug ? Server Time
2 Sep 2024 18:16:54 EDT (-0400)
  Mini Patch Bug ?  
From: Ken
Date: 26 Sep 1999 19:35:34
Message: <37EEAD6A.FF07E167@pacbell.net>
A bug ? I don't know but it is certainly not what was expected. This code
comes straight from Mike's scattering media tutorial and was only modified
by the addition of the sampling type. The results however show something
very strange happening to the lighting in the scene and is nothing like
what one obtains from media in the official version of POV-Ray. I'll post
an example image in the images group for reference sake.


Example code:

/****** start right here ********/
#include "colors.inc"

  camera {
    location <-10, 8, -19>
    look_at <0, 5, 0>
    angle 75
    }
    
    
background { color rgb <0.2, 0.4, 0.8> }

light_source { <0, 19, 0> color rgb 0.5 media_interaction off }

light_source {
<40, 25, 0> color rgb <1, 1, 1>
spotlight
point_at <0, 5, 0>
radius 20
falloff 20
media_attenuation on
}

union {
  difference {
        box { <-21, -1, -21>, <21, 21, 21> }
        box { <-20, 0, -20>, <20, 20, 20> }
        box { <19.9, 5, -3>, <21.1, 15, 3> }
        }
        
  box { <20, 5, -0.25>, <21, 15, 0.25> }
  box { <20, 9.775, -3>, <21, 10.25, 3> }
pigment { color red 1 green 1 blue 1 }
finish { ambient 0.2 diffuse 0.5 }
}    
 
 
media {
scattering {1, .1 extinction .1}
sample_method 2
samples 10, 100
intervals 6
ratio .99
confidence .999
variance 1/10000
}  
/****** finish right here ********/

-- 
Ken Tyler
1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.