

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


P04Writeup.txt P04 - Morphing between polyloops
Extra Credit:
Page 1
P04Writeup.txt
Next, we interpolate across the stored tuples of points, generating the 'animation' of each point separately. This will generate a series of points, similar to the normal 4-point interpolation, but now, there are only two points per frame. We also interpolate across the stored frames, generating the transposition of each point separately. We now have a series of changed frames, whose 'center' points are all the same, and whose vector between the first point, and the point halfway around the polyloop, are the same. So it depicts simply the way the shape morphs, without any change of location or orientation (except that inherent in the morph).
To draw our animation, we iterate across each entry in the interpolated keyframes depicting morphology, and rotate it by the vector between the two points stored in the corresponding entry in our tuple array. We then transpose the keyframe (or, rather, transpose every point in the keyframe) by the amount it takes to move the keyframe's center point (again, the midpoint of a line between the first point of the polyloop, and the point midway around it) to the center point between the two points in the tuple array.
I have not attempted to implement this, as I did not feel like attempting to build it from scratch, nor attempting to add it to the professor's code (which I find extremely cumbersome to work with). I do, however, believe the algorithm will achieve satisfactory results. If my explanation is a bit vague, please contact me, and I will endeavor to demonstrate more effectively what it does.
Page 2