POV-Ray : Newsgroups : povray.binaries.images : Shadows in atmosphere : Re: Shadows in atmosphere Server Time
13 Aug 2024 09:30:29 EDT (-0400)
  Re: Shadows in atmosphere  
From: Abe
Date: 3 Apr 2003 07:05:03
Message: <web.3e8c22222831a9513f8e7b2e0@news.povray.org>
Marc Jacquier wrote:
>Very nice
>You are using different scattering types for each media aren't you?
>

The media types are as follows:

atmospheric scattering - scattering media (type 4)and no extinction.
Although this is usually quite strongly blue, it needed to be tempered for
sunset colors.

atmospheric absorption - absorption media. The absorption color is
predominantly blue (or conversely very low in the orange). This complements
the blue scattering, but is not locked to it like extinction.

haze - a media fog formula comprised of absorption and scattering (type 1)
media.
Better to explain it by example.

#declare haze_thickness=.03;
#declare haze_lightness=.7;
media{
   scattering {1 rgb haze_thickness*haze_lightness/10 extinction 0}
   absorption rgb haze_thickness/10
   method 2 intervals 2 samples 6,6
}

Briefly, haze_thickness controls the overall intensity of the effect and
haze_lightness controls how light or dark the haze is. I call it haze, but
it makes a decent fog which responds well to light beams.

Thats about it.

Abe


Post a reply to this message

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