7. Animation The animation object Before you can animate stuff you need to understand the animation object and it's sub branches. Let's create a new animation. Locate the 'animations' object in the Excavator package. Then use its right mouse button menu to create a new animation. It will be appended as 'animation 1'. Select the new object and take a look at it's properties. The animation object has a reasable number of properties, so let's go over them one by one:
Most of these properties will be explained in more detail in following chapters. Animation window Like most important objects an animation object has a window. Double click the object to open it. You will see something like the picture below: The window represents a simple playback device. With it you can control most of the object's properties by point and click. For example you can control the 'loop', 'simulate' and 'interval enabled' properties by clicking the label for them on the window. You control the 'current frame' by dragging the red marker in the blue/white bar around. You can also set the current interval start and end frame by positioning the red marker (and so the current frame) in combination with the interval control buttons. The first two set the interval start or end to the current frame. The last button clears the current interval. If an interval is present you can also expand or shrink it by clicking and holding one of it's borders. Finally the window has a whole bunch of buttons at the bottom resembling a tape deck. From left to right they are:
You may have noticed a couple of these animation play buttons are also present in the object inspector. These are for quick access, and have the same effect as the ones in the window. The player also can show some statistics about the current playback environment. This can be done by clicking the vertical "Show statistics" text at the right of the window. It will open additional window space reporting things like frame interval time. This can be handy in diagnosing slow playback causes. While playing with the animation window you undoubtedly noticed you see nothing besides a moving frame indicator. To actually see you're animation in action you need to set up a monitor. This is covered in a following chapter, but first you need to familiarize yourself with the animation basics and tools. Animation elements The main thing to grasp in LD4DStudio animation is the concept 'Animation element'. An animation element represents a single aspect of any movable object. During actor editing you learned about joints, and each of them had a X, Y and Z angle and a X, Y and Z move value. By manipulating the 'current' value of these six parameters you will be animating the joint in question. It is these six values that are represented by animation elements. In comparison: If you were doing a puppet show, the animation elements would be the strings attached to the limbs. Joints are not the only objects whom have animation elements assigned to them. In the following chapters you will learn about other objects with animation elements. But before we go there lets first get more familiar with animation elements in general. There are two kinds of animation elements: analog and binary ones. Analog elements are numeric and can have any value (e.g. 1, -5, -1000, 1424, 12.232, -1.32, etc). Binary elements are logical and can only have a value of 'true' or 'false'. An single animation element contains more information then just it's current value. It also has an enabled state, a minimal value, a maximal value, a rangemode and a rest value. The enabled state controls if the element is of any interest in your animation. If you set it to 'false' all changes will be blocked and it will not show up in selection lists. For example take a simple single joint, it has eight possible animation elements (six axes and two binary ones you learn about later). Taking in account an average actor has way more then a single joint the combined list of animation elements will grow huge for even the simplest animation. So by 'disabling' elements you don't need, you will limit the selection lists considerably and you'll be able to keep things in perspective. The minimal and maximal value are only available for analog elements and are used to constrain the element's value during manipulations. The rangemode (also only for analog elements) controls how the value is constrained to the minimal and maximal values. For more details on this see the actor chapter. And finally there is the rest value. This is just that: a value for the animation element in rest. It can be used for initialization and resetting purposes. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Best viewed with Firefox 2, Seamonkey or IE 7 at 1024x768 or higher resolution. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright Roland Melkert 2008-2017, all rights reserved. LEGO is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this website. |