POV-Ray : Newsgroups : povray.advanced-users : Controlling density : Re: Controlling density Server Time
21 Jun 2024 16:27:45 EDT (-0400)
  Re: Controlling density  
From: Thomas de Groot
Date: 13 Oct 2013 07:12:24
Message: <525a8018$1@news.povray.org>
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

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