POV-Ray : Newsgroups : povray.binaries.images : Wrinkle pattern for water : Re: Wrinkle pattern for water Server Time
9 Aug 2024 21:20:17 EDT (-0400)
  Re: Wrinkle pattern for water  
From: Slime
Date: 5 Dec 2004 14:15:21
Message: <41b35e49$1@news.povray.org>
> IMHo it might be nicer if avaraged with waves pattern.

You can always give it a shot. =)

> How do You suggest to animate it?

For a cyclic animation:

#declare animtime = 5; // seconds in animation
#declare translateamnt = animtime * .4; // how much to translate the wrinkle
texture by
#declare transamnt = translateamnt * .2; // how much of that translation is
used to make the beginning match the end by interpolation

isosurface {
 function {
  #if (clock * translateamnt >= transamnt)
   y - f_wrinkles(x/3, clock * translateamnt + 50, z/3)
  #else
   #declare amnt = clock * translateamnt / transamnt;
   y - amnt * f_wrinkles(x/3, clock * translateamnt + 50, z/3) - (1 - amnt)
* f_wrinkles(x/3, (1+clock) * translateamnt + 50, z/3)
  #end
 }
...

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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