POV-Ray : Newsgroups : povray.newusers : Animating isosurfaces : Re: Animating isosurfaces Server Time
2 Nov 2024 05:18:15 EDT (-0400)
  Re: Animating isosurfaces  
From: Thies Heidecke
Date: 5 Sep 2004 15:01:54
Message: <413b62a2$1@news.povray.org>
Hi,
I think the problem is the waves pattern.
IIRC it looks ugly when phased in an unnatural way
because the only thing phase does with it, is to
bias it and the wrapping it to zero when it's value
would go higher than one.

For example compare:
plane {
  y, 0
  pigment { waves phase 0.0 }
}

and

plane {
  y, 0
  pigment { waves phase 0.5 }  // (or any other value for phase)
}

and you'll see what i mean.

a better way is to make your own waves pattern.
A quick start:

#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
}

This is a superposition of three radially travelling waves
with different center-points and scalings. It's a quick hack
but a nice start to build upon i think.

Thies


Post a reply to this message

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