|
|
On 13-10-2013 12:29, posfan12 wrote:
> "MichaelJF" <mi-### [at] t-onlinede> wrote:
>> 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
>
> Are you sure? I thought color maps are just for changing the color of the media
> at different densities, and density maps are for using multiple pre-defined
> densities.
You can use a density map to control how dense the media will be, like
Michael shows. A density map interprets the grey values. rgb 0 is
transparent; rgb 1 is opaque. If you use colours, they are interpreted
as grey values.
Thomas
Post a reply to this message
|
|