CMPS161 Final Project: Hair Animation




AUTHOR
     Ryan C. Lecha                      rlecha@cats.ucsc.edu

Contributors
     Yue Xu, Gopala Walker

NAME
     hair - Hair Animation

SYNOPSIS
     hair

DESCRIPTION
     hair when run will animate a 3D vector field and a strand of hair in the
     vector field.

THE_GUI
     Buttons:
     Exit Program - exit the program.
     Show Flow Field - toggle animation of the flow field blowing hair
     Animate Object - toggle the animation the object on an off.
     No End of Life - toggle Particle End of Life on an off.  You will have to
                      reset the End of Life with slider once you use this if you
                      want End of Life back.

     Sliders:
     Rotate Object - rotate world in x, y, z
     Zoom - Zoom in and out
     Time - incease time step to make animation "faster"
     PEOF - Set the Particle's "End Of Life"
     size of hair particle - change the size of the pieces that make up the
                             strand of hair


COMPILE
     There should be a Makefile that will complie the program for you.  Just
     type make on a command line.

        % make

     To remove all core and .o files use the clean option.

        % make clean

     To remove all core, .o files, and the executable program prog0, use
     the clobber option.

        % make clobber

Here is some sample output:
pic01.gif

The hair although starts to move in the direction of the flow field, the hierarchy breaks, causing the hair to separate


pic02.gif

Here we see the vector field moving faster.

pic03.gif

Here we see the flow field at rest, so the hair is motionless.