Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
logo
    3D Animations with POV-Ray
        Some basics and samples on animations.
Italiano Italiano
Français français
Deutsch Deutsch
Home
- 3D Animations Gallery
- POV-Ray Tutorial

  3D Animation Tutorial
   Index of Content
  0. Basic Knowledge
     1. Basic Sample
     2. From Images to Video
     3. Basic Terms
     4. Animation Commands
  I. Cyclic Animations
     1. Rotating Objects
     1.2. Planets in Orbit
     1.3. Clock Animation
     2. Rotating Camera
     3. Western Wheel
         Problem
     3.1. Rolling Wheels
     4. Gears
     4.1. Roller Chain
     4.2. Bike Chain
     5. Swinging Pendulum
     5.1. Newton's Cradle
     6. Spiral Pendulum
     7. Connecting Rods
     8. Psychedelic
        + Op-Art
     9. Counters
        + Countdowns
    10. Folding of a Cube
  II. Animation Paths
      with Spline Curves
     1. Spline Curves
     2. Animation Paths
                                           

Swinging Pendulum

About oscillations in sine rythm.
           

Swinging Pendulum:
For a cyclic animation we need only to calculate the images of one single oscillation!
The maximal angle of deflection multiplied by sin(clock*2*pi) leads to the actual angle of deflection at the time "clock" (Note: The sine function in POV-Ray needs the angle in radians values (2*pi = 360 degrees)!):

#declare Amplitude = 40;

object {
  Pendula
  rotate <0,0,Amplitude*sin( clock*2*pi)>
  translate<0,2.15,0>
} //---------------------------- end 

pendula
scene description for POV-Ray:
"pendula1.ini" and
"pendula1.pov"

Swinging Door
Another sample for swinging in sine rythm:

door
top

© Friedrich A. Lohmüller, 2010
email email: Friedrich.Lohmueller_at_t-online.de
homepage:http://www.f-lohmueller.de