essential blender 03 object animation discussion

Upload: ahmad-musaffa

Post on 30-May-2018

231 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    1/20

    Chapter 3: Object Animation Basics

    By Roland Hess

    Animation is a change over time in some aspect of your Scene. That change can be something simple, likea change in the color or intensity of a light, or it could be something complicated, like the changes in positionand shape of an entire group of characters dancing in time to music, while the camera whirls around thedance floor. Regardless of what happens in your Scene, there must be a way to track and record thosechanges.

    In Blender, as in most animation software, these changes are recorded as "keyframes" or "keys" for short. Akey is just a marker in time of some state, value or setting.

    Callout: Animation information is stored in "keys".

    Time

    Before we review the keying tools, you should learn how to navigate in time.

    The most visual method for doing this is to use the Timeline Window, found in the center of the default

    Animation Screen, but easily accessible in any window from the Window Type pop-up menu. (Remember: toaccess the default Animation Screen, use the Screens menu from the header at the very top of the Blenderwindow.)

    The View menu on the Timeline window header.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    2/20

    The timeline can be viewed in either seconds or in frames. Blender's default is to break each second into 25frames, the PAL video standard. (Most film/movie work uses 24 frames per second, while the NorthAmerican video standard, called NTSC, uses roughly 30 frames per second). To change the display methodof the timeline, you go through the Timeline Window header's View menu, or simply press the T-key with themouse over the timeline. Frames per second can be set either with the "Set Frames/sec" entry in thePlayback menu, or on the "Frs/sec" spinner in the Render buttons (F10).

    The vertical green marker in the Timeline indicates the current frame. Using LMB in the timeline sets themarker and the current frame. The current frame is also displayed in the lower left hand corner of the 3Dview, and in the header of the buttons window.

    The current frame number can be found in many places on the default animation screen.

    Callout: The current frame can be set by LMB clicking within the timeline.

    In addition to using the timeline to navigate through time, you can also use (surprise!) keyboard shortcuts.

    Figure OAD.2: The arrow keys can be used to change the current frame.

    The Right and Left arrow keys step forward and backward one frame. Up and down arrows step forward andbackward by ten frames. Shift-Left arrow moves to the Start frame, while Shift-Right arrow moves to the Endframe.

    Callout: Right and Left arrow keys change the frame by one. Up and Down arrow keys change the framenumber by ten.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    3/20

    The Start and End frames, which can be set in either the timeline's header or in the Render buttons, indicatethe range of frames that will be shown when you give a "play back" command. You can tell Blender to playthe animation between the Start and End frames in a couple of ways: the "play" button on the timelineheader or with Alt-A in a 3D Window.

    Callout: Alt-A with the mouse over a 3D view plays the animation in that view.

    Creating Animation Keys

    Keys can be set throughout Blender with the I-key. Pressing the I-key will almost always pop up an "InsertKey" menu, with entries appropriate to the mouse's location.

    If the mouse is over the 3D window when the I-key is pressed, a key will be set for the active object.

    The Insert Key menu for the active object.

    Blender's basic animation workflow is simple:

    1. Use the time tools to find the frame where you would like to record a setting for animation;2. Adjust your object how you want it to be at this point in time (location, colors, shapes, etc.);3. Use the I-key to bring up the "Insert Key" menu, then select the appropriate key.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    4/20

    All objects can have Rotation, Location or Scale keys. The Insert Key menu shows several differentcombinations of those choices. In the menu, Loc stands for Location and Rot for Rotation. Thus, the LocRotentry in the menu creates a key for both Location and Rotation. LocRotScale creates keys for Location,Rotation and Scale. If you are only changing the location of an object in your animation, just use the Loctype key. Likewise, if you are only rotating an object, you would choose LocRot.

    The Layer entry on the I-key menu sets an animation key for the layer settings of an object. You can makeobjects appear and disappear from a scene by keying them to move to a hidden layer at a certain frame.

    Explanations for the rest of the entries in the object I-key menu wouldn't make much sense to you at thispoint, so we'll leave them for a more advanced text.

    Callout: I-key brings up the "Insert Key" menu that lets you save states and settings for animation.

    Once you have inserted a key for an object, you continue throughout the timeline to create your animation:pick a frame, adjust your object, set a key. Pick, adjust, set.

    Many settings in Blender are keyable beyond simple object transformations. You can consult thedocumentation to find a comprehensive list of which settings and values can be keyed, but a better way to

    find out is to hover the mouse over the window of the item you would like to key and press the I-key.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    5/20

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    6/20

    The I-key brings up a keying menu appropriate to the window you are working in.

    Ipos and Ipo Curves

    The upper right portion of the default Animation screen is used as an Ipo Window. Many new and migratingusers are confused by the term Ipo, but it's simple, really. In order to create the animation between differentkeys, Blender (like any other 3D program) must "interpolate" between the keys. "Ipo" is just an abbreviationof InterPOlation. So the Ipo Window is just a window in which you can view the actual interpolation betweenanimation keys.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    7/20

    The Ipo window.

    Once you have created keys for an object, they will show up, along with some curves, in the Ipo window.

    Each different setting gets its own curve, and in the illustration you can see that there are curves for LocX,LocY and LocZ - the x, y and z locations of the object. The Ipo window will show the curves for the activeobject in the 3D window, so if you want to see the Ipo curves of a different object, select that object in the 3Dview.

    You can drag with the LMB in the Ipo window to scrub through the animation, just like you could in theTimeline window. In fact, the horizontal axis in the Ipo window is the timeline, in frames, with current timemarked by the vertical green line. The vertical axis shows the actual values of the keys.

    Sidebar: Rotation Key Values

    The exception to the rule about the vertical axis in the Ipo window is rotation keys. Rotation keys arerepresented in the Ipo window as one tenth of their actual value. In other words, a cube with a Y rotation of

    125.25 degrees will show in the Ipo window as 12.52. This is done simply to keep the scales of the differentcurves in the Ipo window relatively similar. Although confusing at first, you'll soon not think twice about it.

    End Sidebar

    Working with Ipo Curves

    The Ipo window shares controls with other areas of Blender. The scroll wheel and MMB function as zoomand view changing controls like they do in the 3D view (MMB only pans the view here). Also, the Home keyautomatically zooms and translates to show all the available objects, which in this case are keys. Curves

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    8/20

    can be selected with the RMB, and the G-key and S-key will move and scale the entire curve. With a curveselected, the Tab key can be used to enter Edit mode, allowing you direct access to the key points whichyou may move as you choose.

    Callout: The Ipo window shares hotkeys and functions with the 3D window. RMB, and G-key and S-key forselecting and transforming curves. Tab key for Edit mode on curves.

    Like the 3D window, the N-key brings up a Transform Properties panel that shows the exact values ofselected curves and key points, and lets you edit them directly by typing in new values.

    The Transform Properties panel for the Ipo window.

    Although you can use these tools to change the actual key values (like changing an x location key from x=5to x=10), you will most often use the Ipo window to change curve interpolation styles, to set the extend modeand to adjust key timing, as you'll see next.

    Callout: N-key brings up Transform Properties panel for curves and keys.

    Interpolation Styles

    Blender allows three different ways for values to change from key to key.

    The default, which you've seen in the illustrations so far, is called "Bezier" mode, and refers to the style ofcurve in the preceding section. This mode leads to smooth transitions between key values, slower at thebeginning and end of the change, and faster in the middle. Using the example of a ball moving between two

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    9/20

    locations, Bezier interpolation would have the ball start out slowly, reaching its maximum velocity halfwaybetween the keyed locations, then slowing down before coming to a stop on the last key.

    Linear mode moves between keys at a constant velocity. This interpolation type is useful when animatingmechanical or non-natural motion.

    Constant mode is of limited use. It causes values to stay the same (constant!) until the next key is reached,at which point they immediately change to the new value. It would be used, for example, to cause an objectto seem to "teleport" from one location to another.

    The different interpolation types.

    Interpolation styles can be set by selecting the curves whose style you wish to change, then selecting theappropriate style from the Interpolation Mode entry in the Curves menu of the Ipo Window header.Alternately, you can use the T-key shortcut (think "inTerpolation") to pop up a menu directly within the Ipowindow.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    10/20

    Choosing interpolation types from the Curve menu on the Ipo window header.

    Callout: T-key brings up the Interpolation mode menu, letting you choose from Bezier, Linear and Constant.

    Extend Modes

    Sometimes, you will want to create a bit of animation that continues forever. A quick way to do this is tocreate one piece of the animation, and then use Ipo Extend Modes.

    Very simply, if the Ipo curves in this illustration represent the motion of an object moving around in a circle:

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    11/20

    Then this illustration represents that same motion repeating over and over.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    12/20

    The same Ipo curves in Cyclic mode.

    You access Extend Modes by selecting the Ipo curves you wish to extend, then choosing the extend style

    you would like from the Extend Mode entry in the Curve menu on the header.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    13/20

    Choosing an Extend mode from the Curve menu on the Ipo window header.

    Constant: this is the default Extend Mode that all Ipo curves have. This is what you would consider "normal"Ipo curve behavior, and the only one you have seen so far.

    Extrapolation: this mode takes the slope of the curve at the first and last keys and simply extends them,forward and backward in time, forever.

    Cyclic: cyclic extend causes the animation between the first and last keys to repeat over and over, resettingeach time.

    Cyclic Extrapolation: this mode repeats the animation like cyclic mode, but instead of resetting, it uses thelast repetition's endpoint as its starting point.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    14/20

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    15/20

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    16/20

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    17/20

    The Extend modes.

    Callout: Extend modes can be set through the Curves menu on the Ipo window header.

    Key Timing

    When you are setting keys for your animations, you probably will be guessing as to how long certain actionsshould take. How quickly should the ball fall toward the floor? How long does it take for a character to turnhis head in surprise? The odds are that you won't know the answer until you play back your animations tosee what looks right. Although the proper location and rotation keys may be in place for such things, theircorrect timing is just as crucial.

    Adjusting key timing in the Ipo window is quick and easy.

    Within the Ipo window, press the K-key to enter Key mode. Every frame that has a key now shows a verticalline that is selectable with the RMB. Using the G-Key to move that vertical line will move all keys that fall

    along it to the left or right (backward or forward) along the timeline.

    This illustration shows the circular motion animation curves in Key mode. The keys on Frame 16 have beenRMB selected.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    18/20

    The Ipo window in Key mode.

    Using the G-key, you can move the entire set of keys from Frame 16 to the left or the right to adjust their

    timing. As you do this, the curves update in real time.

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    19/20

  • 8/14/2019 Essential Blender 03 Object Animation Discussion

    20/20

    The curves adjust to follow the movement of keys.

    Callout: The K-key toggles Key mode in the Ipo window, which lets you quickly adjust the timing of your

    keys.

    While this chapter has shown you the mechanics of moving and animating objects in Blender, it hasn't eventouched on the artistic aspects of animation. Indeed, entire books have been written on the subject. Onceyou are comfortable with the mechanics of animation in Blender, you're encouraged to start practicing andimproving your art.