POV-Ray : Newsgroups : povray.unofficial.patches : Media method 3 bug : Media method 3 bug Server Time
2 Sep 2024 16:21:54 EDT (-0400)
  Media method 3 bug  
From: Margus Ramst
Date: 16 Nov 1999 13:45:48
Message: <3831A6FF.CECBFF@peak.edu.ee>
The below scene demonstrates a bug in UVPov's sampling method 3. Render it and
the problem should be obvious. It seems to be related to the number of media
samples (more samples reduces the effect). It only manifests itself in areas
where the (non-black) background colour is visible.

Margus

//Begin scene

//lower background brightness and the problem becomes less visible
background{rgb .7}

camera{location <5,4,-8> look_at 0}

light_source{
    -z*1000 color rgb 5000
    spotlight point_at 0 radius .03 falloff .031
}

box{
    -1+z,1
    pigment{rgb x}
}

sphere{0,2000
    pigment{rgbf 1}
    finish{ambient 0 diffuse 0}
    interior{
        media{
            scattering{1 rgb .0002 extinction 1}
            intervals 1
            samples 1,1
            //samples 10,50 //more samples -> problem less visible
            method 3
        }
    }
    hollow
}

//The problem disappears on pixels occupied by the disc
disc{z*10,z,3 pigment{rgb z} finish{ambient .2} hollow}


Post a reply to this message

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