POV-Ray : Newsgroups : povray.newusers : Media density : Re: Media density Server Time
19 Apr 2024 17:04:43 EDT (-0400)
  Re: Media density  
From: Thomas de Groot
Date: 24 Jul 2016 06:50:32
Message: <57949d78$1@news.povray.org>
On 24-7-2016 10:19, kurtz le pirate wrote:
>
> Some tests with media.
>
> Whit this code :
>
>
> hollow
> pigment { rgbt 1 }
> interior {
>  media {
>  emission 1.0
>  density {
>   spherical
>   density_map {
>    [ 0.00 rgb <0.39607808, 0.45490193, 0.97254896> ] // exterior
>    [ 0.25 rgb <0.54705858, 0.59117645, 0.97941172> ]
>    [ 0.50 rgb <0.69803905, 0.72745097, 0.98627448> ]
>    [ 0.75 rgb <0.84901953, 0.86372548, 0.99313724> ]
>    [ 1.00 rgb <1.00000000, 1.00000000, 1.00000000> ]
>    }
>   }
>  }
>
>
> 1) : images are same whit or without step 0.25,0.50,0.75 in density_map.
>     Why ?

Have you tried more contrasting colours? I do that to check how the 
pattern changes. Also be aware that in a density pattern colours are 
interpreted as grey tints.

>
> 2) : here, spherical pattern is use for density. is it possible to use
> other thing like gausssian curve for exemple. More generaly, how to
> change pattern with f(x,y,z) for density pattern.

You can use any pattern you like and also warp. See for example my 
sunset media in p.b.i. (there is an example there).


-- 
Thomas


Post a reply to this message

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