POV-Ray : Newsgroups : povray.newusers : Atmospherics and bounding spheres : Re: Atmospherics and bounding spheres Server Time
28 Jul 2024 22:16:23 EDT (-0400)
  Re: Atmospherics and bounding spheres  
From: milco2006
Date: 14 Jun 2007 06:40:01
Message: <web.46711aa7fce84d1362d5bd420@news.povray.org>
Thanks for your reply. They do not overlap unless you mean in terms of the
line of sight for the camera. The code is as follows:


//Small bounded shapes
sphere { 0,1 hollow
        scale<cloudsize,cloudsize/3,cloudsize>
        texture { pigment { rgbt 1 } }
        interior {
          media {scattering { 1 cloudscatter}
            emission rgb<0.00025,0.0000075,0.000005>
            density { spherical
            warp { turbulence cloudturb octaves cloudoct lambda cloudlam
omega 0.5}
            scale <(cloudsize/1.8),(cloudsize/3.5),(cloudsize/1.8)>
            density_map { [0 rgb 0][0.05 rgb 1] }
            }
          }
        }
      rotate 360*rand(S1)*y translate cloudpos}

//Large shape below small bounded shapes
box{<-10000,-300,-3000><10000,-170,74> hollow
  texture{pigment{rgbt 1}}
  interior{
    media{scattering{1,0.00009 extinction 0.01}
  }}
}

I hope some of this makes sense and apologies for all the strange variable
names however just copied this out of a macro I have written.
Thanks again for taking the time to answer.
~Malcolm


Post a reply to this message

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