POV-Ray : Newsgroups : povray.binaries.images : Stupid Beginner's Media Problem : Re: Stupid Beginner's Media Problem Server Time
31 Jul 2024 10:23:06 EDT (-0400)
  Re: Stupid Beginner's Media Problem  
From: Warp
Date: 12 Nov 2009 13:39:34
Message: <4afc5666$1@news.povray.org>

> sphere // transparent sphere containing media
>  { <0, 2, 0>,1
>    pigment { rgbt 1 }
>    hollow
>    interior
>    { media
>      { emission 1
>        density
>        { spherical density_map
>          { [0 rgb 0]
>            [0.4 rgb <1,0,0>]
>            [0.8 rgb <1,1,0>]
>            [1 rgb 1]
>          }
>        }
>      }
>   }
> }

  Your sphere is centered at <0, 2, 0>, while your spherical density map
is centered at <0, 0, 0>. Thus it's not a surprise that you are not
seeing anything because inside the sphere the density is rgb 0 all over.

  Create the sphere centered at <0, 0, 0> and then translate it to
<0, 2, 0> at the end (ie. after the interior definition).


Post a reply to this message

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