POV-Ray : Newsgroups : povray.animations : Animation with sine waves? : Re: Animation with sine waves? Server Time
13 Aug 2026 03:02:36 EDT (-0400)
  Re: Animation with sine waves?  
From: S I R ?
Date: 28 Jul 2026 23:40:00
Message: <web.6a69750e30cd75d7f56ebe5e3a3be07@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:
> On 23/07/2026 06:30, Sir wrote:
> >
> > Hello POV-Ray Users!
> >
> > So, i was rendering an animation of a metronome whose pendulum swings back and
> > forth between a specific angle and its negative.
> >
>
> Hello 'Sir Francisco',
>
> I think you're making things harder on yourself....
>
>
> For exemple :
>
> // 50 degrees -> +/- 25 deg or something else, of course
> #declare Amplitude = 50;
> #declare HalfAmplitude = Amplitude*0.50;
>
>
> Object to animate is "Object"
>
> object {
>    Object
>    rotate sin(clock*tau)*HalfAmplitude*z
>    }
>
> 'clock' from 0.0 to 1.0
>
>
> In this exemple, oscillations is around z-axis.
>
> I hope this helps...
>
>
>
>
> --
> kurtz le pirate
> compagnie de la banquise

Thanks! i tried it and it worked!
If you don't mind, could you explain to me how it works?

- S I R ?


Post a reply to this message

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