POV-Ray : Newsgroups : povray.advanced-users : isosurface - moving pattern : Re: isosurface - moving pattern Server Time
4 Oct 2024 16:18:40 EDT (-0400)
  Re: isosurface - moving pattern  
From: Marc
Date: 3 Jul 2007 08:15:51
Message: <468a3df7$1@news.povray.org>

46876f2e@news.povray.org...
> kurtz le pirate <kur### [at] yahoofr> wrote:
>> adding some things like translate rand(alea) in the pigment function
>> work as i want.
>
>  Another possibility, which I think few actually know, is to do something
> like this:
>
> #declare IsoFunc =
>  function(x, y, z, a, b, c)
>  { max((y*y-1),(x*x-1),(z*z-1)) - pigmentFn(x+a,y+b,z+c).gray*0.75 };
>
> isosurface { function { IsoFunc(x, y, z, 1, 2, 3) } }
>
> -- 
>                                                          - Warp

Yes and you can as well  scale the function output by multiplying x,y,and z 
(the bigger the multiplier, the smaller the scale)

Marc


Post a reply to this message

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