POV-Ray : Newsgroups : povray.newusers : Animating isosurfaces : Re: Animating isosurfaces Server Time
30 Jul 2024 06:23:42 EDT (-0400)
  Re: Animating isosurfaces  
From: Jessie K  Blair
Date: 23 Sep 2004 11:35:27
Message: <4152ed3f@news.povray.org>
With some modification, this worked perfectly, thank you tremendously.

~Jessie

"Thies Heidecke" <h3i### [at] gmxnet> wrote in message 
news:413b63c1$1@news.povray.org...
>> #declare f_mwaves = function(x,y,z,phse) {
>>   0.5*(1+cos(2*pi*(phse+sqrt(x*x+y*y+z*z))))
>> }
>>
>> function{
>>   (f_mwaves((x-3)/3,(y-2)/5,(z+1)/4,5*clock) +
>>    f_mwaves((x+1)/4,(y+1)/6,(z-2)/7,6*clock) +
>>    f_mwaves((x-1)/5,(y-1)/4,(z+2)/6,7*clock)) / 3
>> }
>
> Sorry, just looked over it again and saw that i
> optimized it for a use as pigment-function.
>
> For an isosurface something like this would be better:
> #declare f_mwaves = function(x,y,z,phse) {
>  cos(2*pi*(phse+sqrt(x*x+y*y+z*z)))
> }
>
> function{
>  y -
>  (f_mwaves((x-3)/3, (y-2)/5, (z+1)/4, 5*clock) +
>   f_mwaves((x+1)/4, (y+1)/6, (z-2)/7, 6*clock) +
>   f_mwaves((x-1)/5, (y-1)/4, (z+2)/6, 7*clock)) / 3
> }
>
> Thies
>
>


Post a reply to this message

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