POV-Ray : Newsgroups : povray.general : Re: Fog and media (once again...) Server Time
6 Nov 2024 08:17:40 EST (-0500)
  Re: Fog and media (once again...) (Message 1 to 2 of 2)  
From: arbitrary77
Subject: Re: Fog and media (once again...)
Date: 22 Jul 2004 16:40:00
Message: <web.41002492b8c23e09267ab86b0@news.povray.org>
Tonight I did some more looking at the source code, and found the real cause
of the bug:

There's the media_attenuation keyword, for light sources. It's off by
default. If I turn it on, my scene renders correctly (much darker though,
of course). The bug is that this flag is never checked when the shadows are
calculated... they're always calculated as if media_attenuation was turned
on.

I'll provide a patch (in the appropriate group), sometime in the next days.


Post a reply to this message

From: Warp
Subject: Re: Fog and media (once again...)
Date: 23 Jul 2004 08:03:08
Message: <4100fe7c@news.povray.org>
arbitrary77 <arb### [at] gmxnet> wrote:
> There's the media_attenuation keyword, for light sources. It's off by
> default. If I turn it on, my scene renders correctly (much darker though,
> of course). The bug is that this flag is never checked when the shadows are
> calculated... they're always calculated as if media_attenuation was turned
> on.

  That sounds like a very reasonable cause for the bug, and should be
very easy to fix.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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