Presentation on theme: "CGMB 324: Multimedia System design"— Presentation transcript:
1 CGMB 324: Multimedia System design Chapter 06: Multimedia Element IV - Animation
2 Objectives Upon completing this chapter, you should be able to: To identify the terms and concept related to animationTo define animation and describe how it can be used in multimedia systemsTo understand some of the common animation techniques
4 AnimationAnimation = An illusion of movement created by sequentially playing still image frames with different movements at the general rate of fps (frames per second)This animation moves at 10 frames per second.This animation moves at 2 frames per second. At this rate, the individual frames should be discernible
5 The animations shown before consist of these 6 frames. These frames may be generated by computers, or by photographing a drawn or painted image, or by repeatedly making small changes to a model unit (claymation and stop motion), and then photographing the result with a special animation camera.When the frames are strung together and the resulting film is viewed, there is an illusion of continuous movement due to the phenomenon known as persistence of vision.Generating such a film tends to be very labour intensive and tedious, though the development of computer animation has greatly sped up the process.
6 How Animation Works?It is believe that animation is possible because ofa biological phenomenon known as persistence of visionAn object seen by human eye remains chemically mapped on the eye’s retina for a brief time after viewinga psychological phenomenon called phi.Human’s mind need to conceptually complete the perceived action i.e. translating the action
7 How Animation Works?Combination of these two (persistence of vision + phi) make it possible for a series of images that are changed very slightly and very rapidly, one after another, to seemingly blend together into a visual illusion of movement.E.g. a few cells or frames of rotating logo, when continuously and rapidly changed, the arrow of the compass is perceived to be spinning.Still images are flashed in sequence to provide the illusion of animation
8 How Animation Works?The speed of the image changes is called the frame rate.Movie/Film is typically delivered at 24 – 30 frames per second (fps)Computer animations can be effective at 12 to 15 frames per secondMorphing – process of transforming one image into another via a series of frames
9 How Animation Works?To animate can be thought of as, “to bring to life”Animation includes time varying positions (motion dynamics), shape, color, transparency, structure and texture of an object (update dynamics), and changes in lighting, camera position, orientation and focus.
10 Animation TechniquesTraditional animation, sometimes also called cel animation or hand-drawn animation, is the oldest and historically the most popular form of animation.Traditional animation began with each frame being painted and then filmed.Cel animation, developed by Bray and Hurd in the 1910s, sped up the process by using transparent overlays so that characters could be moved without the need to repaint the background for every frame.Computer animation has advanced rapidly, and is now approaching the point where movies can be created with characters so lifelike as to be hard to distinguish from real actors.
11 Animation Techniques - Cel Animation This image shows how two transparent cells, each with a different character drawn on them, and an opaque background are photographed together to form the composite image.
12 Animation Techniques – Claymation And Computer Animation Example of a claymationExample of a computer animation
13 Animation Layout Transition The simplest form of animation is transitionTransitions specify how the display changes (such as fading to black) as a user moves from one item (such as slide or Web page) to another)Examples :SpiralStretchZoomCheckerboard
14 Process / Information Transition Animation can be used to describe complex information / process in an easier wayPerform visual cues (e.g. how things work)
15 Basic Concepts Of Animation Input processDigitize the drawings – to capture key frames containing the characteristic positions.Post-processing may be required to filter glitches.CompositionForeground and background figures combinedPan = take a portion of an image (e.g. just a person’s face)Zoom = fill the entire screen with an imageIn between processMovement from one position to another needs a composition of frames with intermediate positions (intermediate frames) in between the key frames.‘Inbetweening’ can be done using interpolation
16 Basic Concepts of Tweening Consider the following sequence of key frames (key 13) of a bouncing ball:2Keyframe 213Keyframe 1Keyframe 3
17 Basic Concepts of Tweening Using linear interpolation to yield the in-betweening213
18 Basic Concepts of Tweening This is not realistic!Looks like being deflected by some unknown source; it doesn’t match the rest; angle may be too sharp
19 Basic Concepts of Tweening Better to use a spline (curved lines) formula213
21 Basic Concepts Changing Colors Computer animation uses color lookup tables (CLUT) in a frame buffer and the process of double buffering.Animation is done by manipulating the table.E.g. cycle the LUT; this saves time and bandwidth.Also called Palette AnimationPalette Animations change only the color palettes, while the images themselves remain the same.The effect is very different.
22 Other Animations Other Animations Toggling on and off – For a “yes/no” situationRotating through several image frames – just like still TV ads.Delta frame (frame created from preceding keyframe based on those pixels that have changed) – very computationally intensive, requires storing of initial frame as bitmap.Encoding of the changed pixel into RLE format.
23 Controlling Animation Full Explicit ControlSimplest of all. Just specify explicitly the change or directly manipulate; e.g. for a linear presentation.Procedural ControlBased on communication between various objects to determine their properties.In physically-based system, the position of one object may influence motion of anotherIn action-based systems, the individual actors may pass their positions to other actors to affect the other actor’s behavior.
24 Controlling Animation Constraint-based SystemsSome objects move in straight lines, others don’t!Easier to specify with constraints than explicit control.Tracking Live ActionRotoscoping = specify the acting parts of the character and draw over it. (cartoon characters in real environments)
25 Controlling Animation Use indicator to key points and use data glove to move the parts.Kinematics and Dynamics (physics)Kinematics - relates to position and velocity of pointsDynamics – also follows the laws of physics
26 Animations File Formats Some file formats are designed specifically to contain animations :Macromedia Director (.dir and .dcr)Macromedia Flash (.fla and .swf)AnimatorPro (.fli and .flc)3D Studio max (.max)SuperCard (.pics)CompuServe GIF89a (.gif)
28 Applying Animation In MM Systems When do we need to use animation in a multimedia system?Once we’ve established that, why not just use video?These are some of the questions a multimedia developer is typically faced with.Firstly, animation and video are very much alike.Both are comprised of moving images and both support sound and can depict motion or action.
29 Applying Animation In MM Systems One of the places where animation and video do differ is the nature of the content itself.Most of the time, animation uses vector graphics and flat colors for its content.Video, on the other hand, often uses the equivalent of 24-bit color images to depict real people and real places.Think of animation to be like a cartoon and video like a real movie with real actors and people.Nevertheless, the line separating the two are becoming thinner with time.
30 Applying Animation In MM Systems Animation (like the famous stick man above), is often recognizable by its very nature to portray things and objects that are often not possible in the real world.Video, is more likely to show real world events and people. We can usually tell the difference between video and animation right away.
31 Applying Animation In MM Systems These days, however, animation and video sometimes merge into a motion picture that is different from both pure animation and video, as we know it.This allows the interaction between real people and cartoon characters. It is actually quite an achievement in film-making.
32 Applying Animation In MM Systems So, where would it be suitable to use animation over video?Consider a system which is trying to explain how a CD-ROM is read by the computer.You have the option of either using text, images, audio (narration), animation or video to explain it.All would work, but only one is best.
33 Applying Animation In MM Systems Text would be too long and confusing.Images would be better, but needs to be complemented with a significant amount of text to be understood.Audio can only explain what can also be read in words. Plus, if you missed something, it would be inconvenient to review.Video is interesting, but how do we capture on video this particular process (CD-ROM being read) in reality and in a way that is easy to understand?
34 Applying Animation In MM Systems Finally, we are left with animation.Because of its nature to depict strange and impossible things, we can illustrate how a CD-ROM works quite nicely.The individual components can be taken apart and shown, in motion, how they all interact with one another.Unfortunately, animation has its limitations.Often, we are unable to find something specific in the form of a ready-made animation (which someone else has done) and have to create the thing ourselves.
35 Applying Animation In MM Systems It requires effort and work, but the results are worth it.Plus, we need not worry about copyright infringement, since we created it ourselves.Nevertheless, the long arm of the law can still prosecute us if the content within the animation itself is owned by someone else.So, if you create an animation you plan to use commercially (especially), make sure it is all yours from the ground up.