POV-Ray : Newsgroups : povray.general : Earth view from orbit - media functions? : Re: Earth view from orbit - media functions? Server Time
30 Jul 2024 16:15:30 EDT (-0400)
  Re: Earth view from orbit - media functions?  
From: Jörg 'Yadgar' Bleimann
Date: 23 Sep 2000 08:02:49
Message: <39CC717D.E814F76D@ndh.net>
Hi Margus and all others!

Margus Ramst wrote:

> The correct scattering type for a (clear) atmosphere is probaby Raleigh
> (type 4). The atmosphere gets thinner at higher altitudes, so perhaps you should
> also simulate that (density with "onion" or "spherical" pattern). And for the
> amosphere to be blue, you obviously have to tweak the colour of emission,
> scattering, etc.

Now I've tried interior with ior=1, in "media" I used rayleigh scattering with a
medium blue (rgb 0, 0.5, 1), the density is modified by "spherical", with a density
map:

[0 rgb <0,0,1>]
[0.95 rgb<0, 0.5, 1>]
[1 rgb<0,0,0>]

I thought this should result in an atmospheric fringe starting with a medium to
bright blue at the Earth's surface, outwards gradually fading to black. The bright
blue near the surface in fact fades, but into blue instead of black, and the blue
has a sharp border with black space!

I found out that the latter is because of the selected scattering color... is there
way to modify also the scattering so that it gets weaker towards the surface of the
atmospheric sphere?

For a better explanation here the POV code:

//  $MRY$: 'Air'




#declare Air =

   material  // Air

   {

      texture

      {

         pigment

         {

            color rgbft <1.0, 1.0, 1.0, 1.0, 1.0>

         }

      }

      interior

      {

         ior 1

         media

         {

            scattering {4, rgb<.0, .5, 1>}
            density
            {
               spherical

               density_map

               {
                  [0.0   rgb <0,0,1>]
                  [0.95  rgb<0,0.5,1>]
                  [1.0   rgb<0,0,0>]
               }

            }

         }

      }

   }


See you back in orbit ;-)!

Yadgar


Post a reply to this message

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