POV-Ray : Newsgroups : povray.newusers : Media density : Re: Media density Server Time
25 Apr 2024 02:19:34 EDT (-0400)
  Re: Media density  
From: kurtz le pirate
Date: 24 Jul 2016 10:20:26
Message: <5794ceaa$1@news.povray.org>
Le 24/07/2016 à 12:50, Thomas de Groot a écrit :
> ...
>
> 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.

grey tints... interesting.	

>> 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).

great exemples with 'standard' patterns.

I have difficulty understanding the relationship between the value of 
the pattern and the value of the function and how to write pattern 
function for Povray.

Classic equation for Gauss curve is :

                x^2     z^2
          - ( (-----)+(-----) )
               2.a^2   2.b^2
   y = A.e



Povray documentation sample 
(http://www.povray.org/documentation/view/3.6.1/378/) say :

#declare Foo = function { x + y + z}
pigment {
   function { Foo(x, y, z) }
   [PIGMENT_MODIFIERS...]
   }

So, #declare f_gauss = function { ? }



Thanks for your help.


-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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