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
                                           

Rotating Camera 

Cyclic animation of the camera.
           

The animated camera - we can animate camera location as well as the look_at point or angle of view!
 
Rotating Camera
Here is a sample:

// the rotating camera: ----------
camera {
  angle    35
  location <3.0 , 1.0 ,-20.0>
  right    x*image_width/image_height
  look_at  <-1.0 , 3.5, 5.0>
  rotate   <0,-360*(clock+0.10),0>
//---------------------- end of camera
rotate 1

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

With some ups and downs:

#declare Jump_Start  = 0.5;
#declare Jump_Height = 7;
#if (clock < Jump_Start )
 #declare Camera_Y = 1.00;
#else
 #declare Camera_Y = 1.00
   + Jump_Height*
     0.5*(1-cos(4*pi*(clock-Jump_Start)));
#end

camera {
 angle 38
 location <3,Camera_Y,-20>
 right x*image_width/image_height
 look_at <-3,3,5>
 rotate<0,-360*(clock+0.1),0>
} //------------------- end of camera
rotate 1


For another interesting samples on the animation of camera take a look at the POV-Ray subdirectory "scenes\animation\camera2"

top

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