POV-Ray : Newsgroups : povray.advanced-users : scale in animation... : Re: scale in animation... Server Time
30 Jul 2024 12:32:14 EDT (-0400)
  Re: scale in animation...  
From: Martin Crisp
Date: 26 Jul 1999 21:53:51
Message: <379d112f@news.povray.org>
Jason Dinger wrote in message <379d0a19@news.povray.org>...
>i'm trying to scale an object for an animation where the object
shrinks.
>here is what i've tried:
>
>sphere {0,1 pigment {rgb 1} scale 2*(clock+.0001) }
>sphere {0,1 pigment {rgb 1} scale -2*(clock+.0001) }
>sphere {0,1 pigment {rgb 1} scale (clock+.0001)/2 }
>sphere {0,1 pigment {rgb 1} scale (clock+.0001)/.5 }
>
> the results are always an object that enlarges. does anyone know how i
>would scale it to shrink with the clock value?

scale (1-clock)*factor

when clock is 0 the result is 1*factor
as the clock progresses towards 1 this becomes closer to
0*factor

So things will get smaller

HTH

Have Fun
Martin
--
me### [at] tesseractcomau


Post a reply to this message

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