Lab 8: Splines and Animation

CS 142: The Mathematics of Computer Graphics,Spring 2007



Due Date: Thursday, April 5

Goals

Review of Animation

To review how to do animation:

Splines

  1. Look at the examples at paths/splines to see how one can create and animate along a spline. Download and run one of the examples. Try changing values to see what happens.

  2. In this lab, you are to create a figure (e.g. person, animal) or vehicle (e.g. car, buggy, sled, etc) to animate along a "road".
    The animation should loop, i.e. it should begin and end at the same place. For example:
    Click image for animation. Code:car_path.pov and car.inc
    .

    Look through the code to understand what it does. We will discuss it in class, as well.

  3. Create and name (using #declare) your vehicle or figure and place it in an include file.

  4. On a piece of graph paper, draw the path your vehicle will follow, identifying specific points along the path that will be used to define the spline. There are several things to notice:

  5. Adjust the values associated with each point so that the vehicle is fast in some parts and slow in others.

Summary of what to turn in

No later than class time on Thursday, April 5, please do the following:

We will look at your animation during class on April 5.


[top]  [Schedule]  [Home]