POV-Ray : Newsgroups : povray.general : Light inside diff, atmospheric scatter, no scatter? : Light inside diff, atmospheric scatter, no scatter? Server Time
5 Nov 2024 18:21:06 EST (-0500)
  Light inside diff, atmospheric scatter, no scatter?  
From: Yann Ramin
Date: 23 Feb 2003 05:03:19
Message: <3e589c67@news.povray.org>
I placed a light inside a subtracted series of spheres (the sphere no longer 
has an inside, and has slits cut in it - light can exit the sphere). I'm 
expecting there to be scattered light when leaving the sphere, yet I am 
seeing none. No media seems to work while the light is inside the sphere. 
Media will work once the light leaves the sphere. Is there any way around 
this problem?

(please also reply to e-mail, thank you)

Yann


#declare SphereCutout = difference {
        sphere { <0,0,0>,1 }
        box { <-.1,-2,-2>,
                <.1, 2, 2>
        }
}

#declare SphereCutout2 = difference {
        object { SphereCutout }
        box { <-.1,-2,-2>,
                <.1, 2, 2>
                rotate z*90
        }
}

#declare SphereShell = difference {
        object { SphereCutout2 }
        sphere { <0,0,0>,0.95 }
}

object { SphereShell }


media {
                scattering {1, 0.3 }
                samples 10
                method 3
        }

light_source {
        <0,0,0>
        color rgb 1
        media_interaction on
        media_attenuation on
}


Post a reply to this message

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