POV-Ray : Newsgroups : povray.animations : Animation with sine waves? : Re: Animation with sine waves? Server Time
25 Jul 2026 13:24:49 EDT (-0400)
  Re: Animation with sine waves?  
From: kurtz le pirate
Date: 25 Jul 2026 05:53:25
Message: <6a648795$1@news.povray.org>
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


Post a reply to this message


Attachments:
Download 'metronome.mp4.dat' (45 KB)

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