|
|
"posfan12" <nomail@nomail> wrote:
> How do you control the density of a medium at a given point?
>
> For instance, if you use a spherical pattern then the medium is fully opaque at
> the center of the sphere, and is fully transparent at the outer radius.
>
> BUT, what if I want the sphere to be 25% transparent at 1/3 of the distance from
> the center?
>
> How do I control that?
>
> Thanks!
>
>
> Mike
Hi Mike,
you can use color_maps or density_maps within the media. Something like this:
media{
emission 0.75
scattering {1, 0.5}
density { spherical
density_map {
[0.0 rgb 0]
[2/3 rgb 1]
[1.0 rgb 1]
}
}
}
Best regards,
Michael
Post a reply to this message
|
|