POV-Ray : Newsgroups : povray.newusers : cant get density{sphereical} to work : Re: cant get density{sphereical} to work Server Time
7 Jul 2024 07:29:41 EDT (-0400)
  Re: cant get density{sphereical} to work  
From: Jaime Vives Piqueres
Date: 6 Mar 2010 03:13:30
Message: <4b920eaa@news.povray.org>
Hi James:

   The problem is that you are creating the sphere at your desired location
<0,0,10>, but the spherical pattern is at <0,0,0>. Just change the sphere
like the following and it will work:

//-----------------------------------
sphere {
     <0, 0, 0>, 1
texture {pigment{ Clear}}

     interior{
media{method 3

scattering{4,White}
density {spherical density_map
          { [0 rgb .01]
            [0.4 rgb <1,0,0>]
            [0.8 rgb <1,1,0>]
            [1 rgb 1]
          }

}
}
}
     hollow
     scale 2
     translate <0,0,10>
   }
//-----------------------------------


   Regards,


-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message

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