CMPS 161 FINAL PROJECT WINTER 2003

WAVING FLAG

PROJECT REPORT

 
 

DESCRIPTION:

My final project deals with the "flag effect". That is, animating a waving quadrilatral polygon using sine and cosine functions. As well as demonstating a smooth, wave-like motion, the flag can be manipulated in a number of ways by using specific buttons on the keyboard. There are keys that rotate the waving flag on it various axes as well as keys that govern how fast the rotations take place. The user can toggle the rotation speeds up and down to their liking. The user can turn the lighting off and on as well as manipulate 3 different types of bluish -grey fog. The user can change the flag's wave speed, pause the program and choose between smooth and flat shading. There is some simple "texture" mapping included as well . Below are screenshots from the program, an animation of my flag, descriptions and a mini user-guide .

Have fun!
 

Two screenshots of the flag with the lighting off. The first image is flat shaded, the second smooth.


Two more images, each from a different perspective, this time with the lighting on.


Flag Texture #1 and Flag Texture #2

 

A screenshot of the user-guide gui.

 

An animation of my waving flag- right click on the window to control the animation

USERGUIDE:

1st: Type "make".

2nd: Type "FinalProject". This will start the program. Two gui
windows will pop up. One contains instructions on how to
manipulate the flag. The other contains the flag which will
already be waving.

3rd: Now you are ready to play around with the flag controls.

***ROTATIONS***

*To rotate the flag on the X axis press " x ".
*To rotate the flag on the Y axis press " y ".
*To rotate the flag on the Z axis press " z ".

*To increase the speed of the rotations hold down the
shift key and press " + ".

*To decrease the speed of the rotations press " - ".


***OTHER FEATURES***


*To turn the lights off and on press " l ".
*To make the wave move fast or slow press " w ".
*To toggle between flat and smooth shading press " s ".
*To switch through three types of fog press " f ".
*To switch through two "textures" press " t ".
*To pause the program press the Space bar.

4th:
*To exit the program press the Escape key.