Thursday, 11 February 2010

Bouncing Ball and the Ipo Editor

This week we dealt with Object animation, specifically the timeline and the Ipo editor to create a Bouncing Ball animation on screen, which squashes and stretches as it bounces to increase the illusion of realism.

In begin there was the timeline that could be used to control where in the animation the model was. The timeline was a play button, which starts the animation, and the fast forward/rewind buttons, which again are self-explanatory. Frames can be placed in the timeline at any stage, and Alt+A is used to start the animation. Finally the left and right arrow keys are used to move, frame-by-frame through an animation.

The next step was to create an animation. A sphere was loaded along with a plane for the ball to appear to bounce from. The ball was then moved to it's first frame (at the peak of a bounce), and a 'key' created, lowered it to the ground and then created a second key at frame 20. Finally the 1st key was selected and using Shift+d it was copied and doubled it, so now the animation was 40 frame long. The image below shows the curve of the path of the ball on the z-axis:
















The problem with this curve was that it did not give a realistic bounce as the speed was to uniform, so the next step was to change this curve. This was done by entering edit mode on the curve, pressing 'v' to change the curve to vector, then grabbing the curves handles, and repositioning them to edit the speed going in to and leaving the bounce. The peak of the bounce was also similarly altered. This resulted in the following, as seen in the image below:














The curve was now a lot sharper and reflects a bouncing ball a lot better. The final step was adding a 'cartoony' bounce to the ball, where it squashed and stretched as it collided with the ground. This was done by adding more keys, more specifically scale keys, so as not to affect the location keys we already had. Once added, we positioned the ball near the ground, squashed it, and added a key position, as you can see below - note the new lines in the animation window:














The final stage involved stretching the ball before it hit the ground and as it recoiled from the ground. This was done by creating 2 different stretches, however this would take longer, and lead to inconsistencies in the stretch, so we created one stretch, and using shift+d copied it over to the frame right after the ball bounces off the ground.

No comments:

Post a Comment