POV-Ray : Newsgroups : povray.unofficial.patches : Making waves - isosurface help : Re: Making waves - isosurface help Server Time
2 Sep 2024 00:17:09 EDT (-0400)
  Re: Making waves - isosurface help  
From: Michael Andrews
Date: 20 Jul 2000 05:56:03
Message: <3976CC76.4D63796D@reading.ac.uk>
Hi Tom,

The simplest is probably 

#declare My_Ripples = function { sin(2*pi*sqrt(sqr(x)+sqr(z))) }
#declare Water_Surface = function { y - 0.2*My_Ripples }

and use function { Water_Surface } in the isosurface.

If you want more sea wave shaped ripples, I find

#declare Water_Surface = function { y - 0.2*abs(My_Ripples(x/2,0,z/2))^N
}

where N is around 6 or so is quite good.

Bye for now,
	Mike Andrews.

Tom Melly wrote:
> 
> Assuming I didn't want to just use an inbuilt function, etc., what would be
> the equation to generate a pattern similiar to ripples in an isosurface?
> (ie. circular waves propagating outwards from a point).
> 
> Ta.


Post a reply to this message

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