Facial Animation
CMPS 161-Winter 2010
Kevin Murphy
The main parts of the program are a camera class, a model class, and the main controller code.
The model was made using FaceGen. I altered the model file in order to create vertex groups for animation.
The model class has a boolean map for each part of the face that is animated.
The eyes are each made of three spheres, one for each color, and rotate along the X and Y axis.
The eye brows are animated using a bezier curve for each brow.
The lips are another pair of bezier curves, one for the upper lip and one for the lower one.
The jaw is a hinge joint. Some jaw movements can affect the bezier curves of the lips.
While I didn't have time to add any speech animations, there are a few lip and jaw animations that appear to be speech motions.
User Guide
- To run, the model files need to be in the same folder as the executable.
- The eye brows are controlled by right clicking and dragging vertically while holding the necessary keys.
- i/o chooses an inner or outer raise/lower
- k/l chooses the left or right brow
- unless your computer supports key rollover of three or more, you have to move the brows separately
- The eyes are controlled by left clicking and dragging while holding 'e'
- The mouth can be moved with a couple of different methods.
- left clicking and dragging vertically while holding 'm' will open the mouth and the jaw
- doing the same while holding 'n' will only move the jaw
- u/j will open the mouth without moving the jaw
- -/= will make the mouth smile/sadface
- q/w will make the mouth make a frown
- r will reset the model