Home > Articles

Like this article? We recommend

Like this article? We recommend

Elastic Reality: Squash and Stretch

All objects and characters exhibit an elastic quality as they are animating. This phenomenon is referred to as squash and stretch; the simplest example is a bouncing ball. When the ball hits a surface, it squashes upon impact and then stretches out as it bounces off the surface. Figure 5 illustrates this effect.

Figure 5 The dynamics of the squash and stretch can be applied, in an appropriatemeasure, to every animating object in your shot. Using it creates the appearanceof elasticity, mass, weight action, and reaction, thereby creating a dynamic,lifelike appearance in your animation.

Squash and stretch are considered secondary animation movements. After youcomplete the animation of the primary up/down movement of the ball, you'lladd the squash and stretch animation to give the ball its bounce.

Rough Animation

When you first begin animating an object, you are not trying to create allthe little details of secondary or overlapping movement, although you will keepthem in mind. Establishing the basic gross motion of the animation is the firststep.

  1. Click on the Animate button and move the Time Slider to frame30. Using the z-axis of the Ball object, move it up in the Camera viewuntil it reaches the top of the screen as shown in Figure 6. When you make thismove, you'll see keyframe dots appear at frame 0 and at frame 30 in theTrack Bar.

  2. Figure 6 Establishing the gross movement is also called rough animation. The grossmovement in this case is the basic up/down motion of the ball.

  3. Change to Right view, move the Time slider to frame 45, andmove the ball down so that it passes about 1/3 of the way through the groundplane, as shown in Figure 7. The Absolute: World Z value for this position is15—the same as the beginning position. Setting this third keyframecompletes the rough animation and sets the ball up for the squash and stretchadjustments that you'll add in a moment. Exit Animation mode and save yourfile.

  4. Figure 7 Having the ball pass below the ground plane now saves a step later when yousquash it to create a more realistic bounce.

Using Track View to Create an Animation Cycle

If you wanted the ball to bounce and slowly dribble to an end, you would haveto animate it using more keyframes, decreasing the time between frames andshortening the distance of the bounce in the z-axis. However, for this exercise,you'll use the Parameter Curve Out of Range Types to tell max to create anongoing repeating cycle.

  1. Click on the Track View icon to open the Track View Editor, shown in Figure 8.

  2. Figure 8 The Track View is the main control center of all animation in max. Itcontains all the information regarding the animation of all the max materials,lights, objects, and so on in your shot.

    TIP

    I've been using the Track View Editor for almost four years now and still haven't begun to scratch the surface of its full capability. In many ways, it is like max itself in this respect—a full-function, multilayered, deep CGI animation tool. The best way I've found to use Track View is to do as much as I can in the other related tools in the main interface— Track bar, Motion Command Panel, and so on—and then use Track View and its capabilities for more sophisticated and complex animation control.

  3. When you are working with the Track View Editor, sometimes it is confusing to see every piece of max information concerning the animated elements of the shot. Using the Filter dialog box, you can tell max to show just the specific pieces that you want to work with in the Scene Hierarchy list. Click on the Filters button to open the Filters dialog box, and click on Animated Tracks in the Show Only section, as shown in Figure 9.

  4. Figure 9 Use the other filters in this dialog box to customize what the Track View displays and how it displays its animation information.

    NOTE

    The Filters dialog box is similar to the Display command panel in function. Selecting Animated Tracks in the Show Only section of the Filter dialog box tells max to show just the information for the objects that are animated in the shot. In this case, the ball is the only animating object.

  5. Click OK to close the Filters dialog box and return to the main Track View interface. The Scene Hierarchy list now contains three items—World, Sound, and Objects.

  6. Click on the plus sign next to Objects to open it up, and click on the subsequent plus signs that open next to Ball and Transform to open them up as well. Then click on Position under Transform, as shown in Figure 10. You'll see three dots in the keyframe editor. These are the same three keys that you created in the Track Bar while you were animating the ball.

  7. Figure 10 When you select Position in the hierarchy, several icons in the main menu bar of the Track View Editor become active, and the animation track for the position animation highlights in white. To change any animation in the Track View Editor, you have to select the specific parts that you want to change in the hierarchy list of animated elements.

  8. Click on the Parameter Curve Out-of-Range Types button. When its dialog box opens, choose Cycle from the options, as shown in Figure 11.

  9. Figure 11 Parameter Curve Out-of-Range Types are used to define how an object's animation behaves outside the range of keys you've defined.

You've created the first three keyframes of the ball bounce animation. When you chose Cycle as the option in the Parameter Curve Out-of-Range Types dialog box, you told max to repeat those first three frames throughout the rest of the length of the animation. If you play your animation now, you'll see that the ball bounces in a repeating cycle of those frames. Using Parameter Curve Out-of-Range Types enables you to turn short segments of animation into the following different patterns:

  • Constant is the default Out-of-Range type that max assigns to your animation. Use this type when you don't want any type of repeating cycle before or after the range of keyframes.

  • Cycle is the type to choose for simple repeating animation. Make sure that the beginning and end frames are in the same position. If they aren't, you will see a jump or hiccup in your animation flow.

  • Loop repeats the animation in your keyframe range and smoothes the transition or interpolation between the last keyframe and the first keyframe of the next cycle, creating an ongoing loop. In the case of the ball you are animating, because the first and last keyframes are virtually the same, using Loop will create the same effect as Cycle.

  • Ping Pong repeats your animation by alternating between a forward and a reverse repeat of the keyframes, just like a ping-pong ball traveling back and forth on a table.

  • Linear is not a repeating cycle type. Use it when you want an animation to flow through a range of keys at a constant velocity.

  • Relative Repeat repeats the animation defined by the keys but offsets each repetition by the value of the end key. Animation using relative repeat will build on each cycle, growing more extreme as the cycle repeats over time.

Take a moment now and try out each range type to see the effect they have on your ball bounce. Learning how to use these effectively can save you a lot of time by allowing max to help you create your repeating cycles. You can minimize the Track View as you do this, but don't close it; you'll be coming back to it later on.

Using the Motion Command Panel to Squash the Ball

The next step is to add the effect of squash to your bouncing ball. This will create the kind of elastic reality that a real ball would have as it collides with the ground. You'll add a basic squash here and refine it to include some stretch after anticipation is discussed. Click on the Motion Command Panel, as shown in Figure 12.

Figure 12 The Motion Command Panel provides precision controls to develop your animation. You can use it to create, delete, and modify the keyframe animation values for the position, rotation, and scale of your animated objects.

The Motion Command Panel, coupled with the Track Bar and Time slider, provides a simpler version of the Track View Editor in the main max interface. The important thing to be aware of is what mode you are in when you are creating and deleting the keys for your animation. You have three modes to choose from (refer to Figure 12).

The two boxes marked In and Out are the controls used to tell max how the animation between the keyframes you create are to be interpolated. You'll learn more about this in few moments in the discussion of Ease In and Ease Out. To create the squash needed for the animation, you'll use the Scale controls in the Motion Command Panel.

NOTE

When you use the Motion Command Panel to create Position, Rotation, and Scale (PRS) keys, you don't have to be in Animation mode.

  1. Move your Time slider to frame 0, and change the PRS mode to Scale, as shown in Figure 13.

  2. Figure 13 The Scale section is grayed out because no keyframe has been created at frame 0.

  3. Click on Scale in the Create Key section of the PRS Parameters rollout, and change the Z Value to 35, as shown in Figure 14. You'll see the ball squash in the z-axis, creating the proper form that it needs when it is in contact with the ground. Because the ball is a constant animation, you'll create a keyframe with a z-axis value of 35% every time the ball reaches its lowest position at frames 45, 90, 135, 180, 225, 270, and 315. This creates the effect of the ball squashing upon bounce impact.

  4. Figure 14 The values in the XYZ boxes are percentages. A value of 100% means that the ball is at its full original shape; 0% reduces it to a pancake, and anything above 100% stretches it out. If you view the ball in the right-side view, you'll see that it is now just touching the ground plane.

  5. Move the Time slider to frame 10, and once again click on Scale in the Create Key section of the PRS parameters rollout to create a Scale keyframe at frame 10. Change the Z Value back to 100.

  6. Move the Time slider to frame 45, create another Scale key, and change the value to 35%.

  7. Repeat this process creating z-axis: 100% keyframes at frames 55, 100, 145, 190, 235, and 280. Create z-axis: 35% keyframes at frames 90, 135, 180, 225, 270, and 315.

Save your file and play your animation. It's animating nicely, but the interpolation—how the frames move between the keyframes—needs to be changed. You will do this after a brief discussion about Slow In and Out and Anticipation.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020