Lec 4
Lec 4
eg
Chapter (3)
Computer Animation
Animation means giving life to any object in computer graphics. It has the power of injecting
energy and emotions into the most seemingly inanimate objects. Computer-assisted
animation and computer-generated animation are two categories of computer animation. It
can be presented via film or video.
The basic idea behind animation is to play back the recorded images at the rates fast enough
to fool the human eye into interpreting them as continuous motion. Animation can make a
series of dead images come alive. Animation can be used in many areas like entertainment,
computer aided-design, scientific visualization, training, education, e-commerce, and
ﺣﺒﻴﺒﻪ ﺍﺑﺮﺍﻫﻴﻢ ﻣﺤﻤﺪ ﺍﻟﻤﺴﻴﺮﻯ
computer art.
38
[email protected] [email protected] [email protected]
Chapter (3)
39
[email protected] [email protected] [email protected]
Computer Animation
Year Developments
1906 “Humorous phase of funny faces” – 1st animated movie/film.
1909 “Gertie the trained Dinosaur” – Cartoon was developed.
1913 Felix the cat” and “Old doc Yak” – Cartoon series was developed.
1923 Cartoon movie Alice’s Wonderland was created.
ﺣﺒﻴﺒﻪ ﺍﺑﺮﺍﻫﻴﻢ ﻣﺤﻤﺪ ﺍﻟﻤﺴﻴﺮﻯ
3.3
2024/2025
Applications of Computer
2024/2025
Animation 2024/2025
40
[email protected] [email protected] [email protected]
Chapter (3)
2. Entertainment:
Animation methods are now commonly used in making motion pictures, music videos and
television shows, etc.
designing. But now almost all types of designing are done by using CAD application, and
without animation, all these work can't be possible.
4. Advertising:
This is one of the significant applications of computer animation. The most important
advantage of an animated advertisement is that it takes very less space and capture people
attention.
5. Presentation:
2024/2025 2024/2025 2024/2025
Animated Presentation is the most effective way to represent an idea. It is used to describe
financial, statistical, mathematical, scientific & economic data.
41
[email protected] [email protected] [email protected]
Computer Animation
3.4.2 Keyframing
In this technique, a storyboard is laid out and then the artists draw the major frames of the
animation. Major frames are the ones in which prominent changes take place. They are the
key points of animation. Keyframing requires that the animator specifies critical or key
positions for the objects. The computer then automatically fills in the missing frames by
smoothly interpolating between those positions.
A key frame in computer animation is a frame where we define changes in an animation.
According to key framing, a storyboard requirement is must as the animator/artist draws the
major frames (frames in which major/important changes can be made later) of animation
from it. In key framing, character’s or object’s key position are the must and need to be
defined by the animator, because the missing frames are filled in those key position via
computer automatically.
ﺣﺒﻴﺒﻪ ﺍﺑﺮﺍﻫﻴﻢ ﻣﺤﻤﺪ ﺍﻟﻤﺴﻴﺮﻯ
3.4.3 Procedural
In a procedural animation, the objects are animated by a procedure − a set of rules − not by
keyframing. The animator specifies rules and initial conditions and runs simulation. Rules are
often based on physical rules of the real world expressed by mathematical equations.
In Procedural method, set of rules are used to animate the objects. Animator defines or
specifies the initial rules and procedure to process and later runs simulations. Many of the
times rules or procedure are based on real worlds physical rule which are shown by
mathematical equations.
3.4.4 Behavioral
In behavioral animation, an autonomous character determines its own actions, at least to a
certain extent. This gives the character some ability to improvise, and frees the animator from
the need to specify each detail of every character's motion.
42
[email protected] [email protected] [email protected]
Chapter (3)
43
[email protected] [email protected] [email protected]
Computer Animation
44
[email protected] [email protected] [email protected]
Chapter (3)
3.5.2 Wrapping
Wrapping function is similar to morphing function. It distorts only the initial images so that it
matches with final images and no fade occurs in this function.
Figure 3. 6 Tweening
45
[email protected] [email protected] [email protected]
Computer Animation
3.5.4 Panning
Usually Panning refers to rotation of the camera in horizontal Plane. In computer graphics,
Panning relates to the movement of fixed size window across the window object in a scene.
In which direction the fixed sized window moves, the object appears to move in the opposite
direction as shown in Figure:
ﺣﺒﻴﺒﻪ ﺍﺑﺮﺍﻫﻴﻢ ﻣﺤﻤﺪ ﺍﻟﻤﺴﻴﺮﻯ
Figure 3. 7 Panning
If the window moves in a backward direction, then the object appear to move in the forward
direction and the window moves in forward direction then the object appear to move in a
backward direction.
3.5.5 Zooming
In 2024/2025
zooming, the window is fixed an object2024/2025
and change its size, the object also appear to
2024/2025
change in size. When the window is made smaller about a fixed center, the object comes
inside the window appear more enlarged. This feature is known as Zooming In.
When we increase the size of the window about the fixed center, the object comes inside the
window appear small. This feature is known as Zooming Out.
3.5.6 Fractals
Fractal Function is used to generate a complex picture by using Iteration. Iteration means the
repetition of a single formula again & again with slightly different value based on the
46
[email protected] [email protected] [email protected]
Chapter (3)
previous iteration result. These results are displayed on the screen in the form of the display
picture.
Fractals are used in many areas such as:
Astronomy: for analyzing galaxies, rings of Saturn, etc.
Biology/Chemistry: for depicting bacteria cultures, Chemical reactions, human
anatomy, molecules, plants,
Others: for depicting clouds, coastline and borderlines, data compression, diffusion,
economy, fractal art, fractal music, landscapes, special effect, etc.
ﺣﺒﻴﺒﻪ ﺍﺑﺮﺍﻫﻴﻢ ﻣﺤﻤﺪ ﺍﻟﻤﺴﻴﺮﻯ
Figure 3. 9 Fractals
Generation of Fractals
Fractals can be generated by repeating the same shape over and over again as shown in the
following figure. In figure a, shows an equilateral triangle. In figure b, we can see that the
triangle is repeated to create a star-like shape.
2024/2025 In figure c, we can see that2024/2025
2024/2025 the star shape in
figure b is repeated again and again to create a new shape.
We can do unlimited number of iteration to create a desired shape. In programming terms,
recursion is used to create such shapes.
Geometric Fractals
Geometric fractals deal with shapes found in nature that have non-integer or fractal
dimensions. To geometrically construct a deterministic nonrandom self-similar fractal, we
start with a given geometric shape, called the initiator. Subparts of the initiator are then
replaced with a pattern, called the generator.
47