|
![](/i/fill.gif) |
density_map{spherical color_map{[0 rgb 0][1 rgb 1]} scale Sphere_Radius}
Sphere_Radius would have to be either the radius of the sphere, or you leave
that out when declaring the unit-sphere (sphere{0,1 hollow etc}) and apply
transformations AFTER the materials.
To change the colors, just use different rgb values. Note that the 0 index
of the color_map will be everywhere around the sphere. The spherical-pattern
begins at the origin with color_map 1 and fills a sphere of radius 1 until
color_map 0.
Regards,
Tim
--
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de
> Hi!
> I try to make a sphere media with a spherical density.
> The density should be 1 at the center and constant until x percent of the
> radius are reached. Then the density should falloff linear until the
radius
> of the sphere is reached.
> How can I achieve this? density_map?
>
> //********************************
> media {
> scattering {3, <1,1,1>}
> intervals 1
> density_map {
> ???
> }
> }
> //***********************************
>
>
> Can anyone give an example?
> Thanks!
>
> --
> Erhard Ducke
Post a reply to this message
|
![](/i/fill.gif) |