Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
logo
    3D Animations with POV-Ray
        Some basics and examples 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 Example
  > 2. Example 2
     3. Images to Animated Gif
     4. From Images to Video
     5. Basic Terms
     6. Animation Commands
  I. Cyclic Animations
     1. Rotating Objects
     1.2. Planets in Orbit
     1.3. Clock Animation
     2. Rotating Camera
     2.1. Straight Moving 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
     5.2: Rock the Rocker
     6. Spiral Pendulum
     7. Coupling Rods
     7.1. Connecting Rods
     8. Psychedelic + Op-Art
     9. Counters + Countdowns
    10. Folding of a Cube
  II. Non-linear Movements
     1.0 Speed Up/Slow Down 1
     1.1 Speed Up/Slow Down 2
     2. Fall + Bounce
     3. Acceleration by
          physical Formulas
     4. Speed Controll by
          Spline Functions
  III. Animation Paths
      with Spline Curves
     1. Spline Curves
     2. Closed Splines
     3. Animation Paths
                                                       

      Example 2 

...

      For an animation with POV-Ray you'll need only 2 files:
      1. a POV-Ray scene file (extension: .pov), which uses the clock value and
      2. a POV-Ray amimation initialisation file (extension: .ini), which defines the clock value
          and repeatedly calls the scene file with changed clock values.

A POV-Ray scene file:

"animation_a_.pov"

#version 3.7;
global_settings {  assumed_gamma 1.0 }
//---------------------------------------
 //...
 // a basic background scene
 //...
//----------------------------------- end
#declare Nr = clock ;

cylinder{ <0,0.01,0>,<0,2.01*Nr,0>, 0.30
          texture {
             pigment { color rgb<1,1,1> }
             finish  { phong 0.5 reflection 0.00 }
                  } // end of texture
          translate<0.4,0,-0.3>
        } // end of cylinder ---------------------
scene file

An animation ini file:
Note: The ini file must be in the same directory
         as the POV-Ray scene description file!
         Use ";" instead of "//"
         for comments in POV-Ray ini files!

"animation_a_.ini"

; POV-Ray animation ini file
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3

Input_File_Name=animation_a_.pov

Initial_Frame=1
Final_Frame=10
Initial_Clock=0
Final_Clock=1

Cyclic_Animation=on
Pause_when_Done=off


Scene descriptions for POV-Ray:
"animation_a_.pov" and
"animation_a_.ini"

top

© Friedrich A. Lohmüller, 2016
http://www.f-lohmueller.de