Dragons!


For my final project, I made two different hierarchical models of a Chinese dragon. Each model was built with the same parts but utilized a different placement algorithm to properly transform the dragon. Each model also had an animation associated with it.

The first dragon was the sine wave dragon. Each section of the body was translated by the sine(x), where x = section's # * (360 / total sections). Each piece was also rotated by 45 * cosine(x). The total sections in my case equaled 30.

The second dragon was the circle dragon. Again x was calculated in the same way, and each piece was rotated by x, and placed using sine and cosine to form the unit circle.

To change from the circle to the flying dragon and vice versa, press 'c'.

To start/stop the animation, press 'i'.

To quit, press 'q'.


Picture 1

Picture 2