POV-Ray : Newsgroups : povray.binaries.images : Afghan Sunrise (133K) - problem with star background : Re: Afghan Sunrise (133K) - stars now correct, but surface in twilight Server Time
20 Aug 2024 00:12:15 EDT (-0400)
  Re: Afghan Sunrise (133K) - stars now correct, but surface in twilight  
From: sacrofts
Date: 24 Sep 2000 04:47:58
Message: <39cdbfbe@news.povray.org>
I don't know if this will help, this is an adaptation from a tutorial I 
was following.  I vaguely remember some improvement in making the 
absorption media and scattering media in separate declarations.  The 
tutorial advised dividing the color statement by the scale used to match 
the radius of the atmosphere.

---code
#declare atmos = media {     file://atmospheric scatter
   scattering {4, rgb <.6,.5,1>/8280.5}
   intervals 1        file://set to 10 for final
   samples 2, 20
   confidence 0.9999
   variance 1/1000
   density {
      spherical
      color_map{ 
         [0,    rgbf <0,0,0,1>] 
         [.075, rgbf <.75, .75, .75, 1>] 
         [.15   rgbf 1] 
         [.6,   rgbf 1] 
         [.61,  rgbf <0,0,0,1>] 
         [1,    rgbf <0,0,0,1>]
      }
   }
scale 8280.5}

#declare atmos2 = media {     file://atmospheric absorption
   absorption rgb <.6, .5, 0>/8280.5
   intervals 1      file://set to 20 for final
   samples 2, 20
   confidence 0.9999
   variance 1/1000
   density {
      spherical
      color_map{ 
         [0,    rgbf <0,0,0,1>] 
         [.075, rgbf <.75, .75, .75, 1>]
         [.15   rgbf 1] 
         [.6,   rgbf 1] 
         [.61,  rgbf <0,0,0,1>]
         [1,    rgbf <0,0,0,1>]
      }
   }
scale 8280.5}

sphere {0, 8280.5 hollow    file://atmosphere upper layer (low 
refraction)
   pigment{rgbt 1.0}
   interior {ior 1.000292 media {atmos} media {atmos2}} file://050
   } 
---


Post a reply to this message

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