POV-Ray : Newsgroups : povray.newusers : Media Tutorial? : Re: Media Tutorial? Server Time
5 Nov 2024 01:22:30 EST (-0500)
  Re: Media Tutorial?  
From: Christopher James Huff
Date: 4 Aug 2002 20:07:34
Message: <chrishuff-340DBA.18582904082002@netplex.aussie.org>
In article <3d4d94b1@news.povray.org>, "John Vodden" <jav### [at] gmxcouk> 
wrote:

> So would I be right in thinking that the colour will set the max density and
> the "density" will make a pattern with densities less than and up to that?
> (not the nicest way of phrasing it I'm sure!)

Not quite...the densities are multiplied together. If you use values 
between 0 and 1 in the density portion (in the color_map, for example), 
the actual density will range between 0 and the constant color you gave 
with the scattering, emission, and/or absorption keywords. With solid 
media (with no density pattern) I usually use COLOR*DENSITY for the 
constant value, which makes it easy to separately adjust the color and 
density of the media. With patterned densities, I use the density 
statement to provide the color, and the constant value for the density.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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