POV-Ray : Newsgroups : povray.text.scene-files : Help needed : Re: Help needed Server Time
3 May 2024 07:15:40 EDT (-0400)
  Re: Help needed  
From: Kenneth
Date: 10 Jan 2009 00:35:00
Message: <web.496832c62c05c2aaf50167bc0@news.povray.org>
You're 2nd image is very nice--much improved!

"Meothuru" <nomail@nomail> wrote:

[*snip*]
>       interior {
>          media {
>             density {  spherical
>
>                density_map {
>                   [ 0 color rgb <0, 0.00904, 0.166667>  ]
>                   [ 0.580968 color rgb <0.089516, 0.199522, 0.393939>  ]
>                   [ 0.764608 color rgb <0.179032, 0.390004, 0.621212>   ]
>                   [ 0.764608 color rgb <0.179032, 0.390004, 0.621212>   ]
>                   [ 0.888147 color rgb <0.08951, 0.679851, 0.795454>   ]
>                   [ 1 color rgb <0, 0.969697, 0.969697>  ]
>                }

[*snip*]

I thought you might like to know that a density_map isn't necessary here--just a
color_map. (But both of them work, of course.) I was confused about that as
well, for a long time. A density_map is really for listing multiple density
blocks, rather than just colors.

I also noticed that you had a second density in each
sphere...spherical{density}...without a color_map.  I guess you wanted that on
purpose, but all it is doing is adding media brightness (no color) to your
sphere. (It is using a default color_map, which I think is just black to
white--or in the case of media, it represents 'no' media to 'full' media.) You
could eliminate those extra densities, to get richer colors.

Ken W.


Post a reply to this message

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