Docsity

computer graphics animation, Lecture notes of Computer Graphics

Toggle sidebar
bg1
UNIT – VIII
Computer animation: Design of animation sequence, general computer animation functions, raster
animation, computer animation languages, key frame systems, motion specifications.
(p.nos 604-616 of text book -1, chapter 21 of text book-2).
Computer animation
• Some typical applications of computer-generated animation are entertainment(motion pictures
and cartoons), advertising, scientific and engineering studies, and training and education.
• The term computer animation generally refers to any time sequence of visual changes in a
scene.
• In addition to changing object position with translations or rotations, a computer-generated
animation could display time variations in object size, color, transparency, or surface texture.
• Advertising animations often transition one object shape into another:
For example, transforming a can of motor oil into an automobile engine.
• Computer animations can also be generated by changing camera parameters, such as position,
orientation, and focal length.
• Computer animations are produced by changing lighting effects or other parameters and
procedures associated with illumination and rendering.
• Many applications of computer animation require realistic displays.
• An accurate representation of the shape of a thunderstorm or other natural phenomena
described with a numerical model is important for evaluating the reliability of the model
• Also, simulators for training aircraft pilots and heavy-equipment operators must produce
reasonably accurate representations of the environment.
• Entertainment and advertising applications are sometimes more interested in visual effects.
• Thus, scenes may be displayed with exaggerated shapes and unrealistic motions and
transformations.
• There are many entertainment and advertising applications that do require accurate
representations for computer-generated scenes.
• In some scientific and engineering studies, realism is not a goal.
For example, physical quantities are often displayed with pseudo-colors or abstract shapes
that change over time to help the researcher understand the nature of the physical process.
Design of animation sequence
• In general, an animation sequence is designed with the following steps:
•..1 Storyboard layout
•..2 Object definitions
•..3 Key-frame specifications
•..4 Generation of in-between frames
• This standard approach for animated cartoons is applied to other animation applications,
although there are many special applications that do not follow this sequence.
• Real-time computer animations produced by flight simulators, for instance, display motion
sequences in response to settings on the aircraft controls.
• Visualization applications are generated by the solutions of the numerical models.
• For frame-by-frame animation, each frame of the scene is separately generated and stored.
•Later, the frames can be recorded on film or they can be consecutively displayed in "real-time
playback" mode.
Storyboard layout
• The storyboard is an outline of the action.
• It defines the motion sequence as a set of basic events that are to take place.
Pg 1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download computer graphics animation and more Lecture notes Computer Graphics in PDF only on Docsity!

UNIT – VIII

Computer animation : Design of animation sequence, general computer animation functions, raster animation, computer animation languages, key frame systems, motion specifications. (p.nos 604-616 of text book -1, chapter 21 of text book-2).

Computer animation

  • Some typical applications of computer-generated animation are entertainment(motion pictures and cartoons), advertising, scientific and engineering studies, and training and education.
  • The term computer animation generally refers to any time sequence of visual changes in a scene.
  • In addition to changing object position with translations or rotations, a computer-generated animation could display time variations in object size, color, transparency, or surface texture.
  • Advertising animations often transition one object shape into another: For example, transforming a can of motor oil into an automobile engine.
  • Computer animations can also be generated by changing camera parameters, such as position, orientation, and focal length.
  • Computer animations are produced by changing lighting effects or other parameters and procedures associated with illumination and rendering.
  • Many applications of computer animation require realistic displays.
  • An accurate representation of the shape of a thunderstorm or other natural phenomena described with a numerical model is important for evaluating the reliability of the model
  • Also, simulators for training aircraft pilots and heavy-equipment operators must produce reasonably accurate representations of the environment.
  • Entertainment and advertising applications are sometimes more interested in visual effects.
  • Thus, scenes may be displayed with exaggerated shapes and unrealistic motions and transformations.
  • There are many entertainment and advertising applications that do require accurate representations for computer-generated scenes.
  • In some scientific and engineering studies, realism is not a goal. For example, physical quantities are often displayed with pseudo-colors or abstract shapes that change over time to help the researcher understand the nature of the physical process.

Design of animation sequence

  • In general, an animation sequence is designed with the following steps: •..1 Storyboard layout •..2 Object definitions •..3 Key-frame specifications •..4 Generation of in-between frames
  • This standard approach for animated cartoons is applied to other animation applications, although there are many special applications that do not follow this sequence.
  • Real-time computer animations produced by flight simulators, for instance, display motion sequences in response to settings on the aircraft controls.
  • Visualization applications are generated by the solutions of the numerical models.
  • For frame-by-frame animation , each frame of the scene is separately generated and stored.
  • (^) Later, the frames can be recorded on film or they can be consecutively displayed in "real-time playback" mode.

Storyboard layout

  • The storyboard is an outline of the action.
  • It defines the motion sequence as a set of basic events that are to take place.
  • Depending on the type of animation to be produced, the storyboard could consist of a set of rough sketches or it could be a list of the basic ideas for the motion.

Object definitions

  • An object definition is given for each participant in the action.
  • Objects can be defined in terms of basic shapes, such as polygons or splines.
  • The associated movements for each object are specified along with the shape.

Key-frame Specifications

  • A keyframe is a detailed drawing of the scene at a certain time in the animation sequence.
  • Within each key frame, each object is positioned according to the time for that frame.
  • Some key frames are chosen at extreme positions in the action; others are spaced so that the time interval between key frames is not too great.
  • (^) More key frames are specified for intricate motions than for simple, slowly varying motions.

Generation of in-between frames

  • In-betweens are the intermediate frames between the key frames.
  • The number of in-betweens needed is determined by the media to be used to display the animation.
  • Film requires 24 frames per second, and graphics terminals are refreshed at the rate of 30 to 60 frames per second.
  • Typically, time intervals for the motion are set up so that there are from three to five in- betweens for each pair of key frames.
  • Depending on the speed specified for the motion, some key frames can be duplicated.
  • For a 1-minute film sequence with no duplication, 1440 frames are required.
  • With five in-betweens for each pair of key frames, 288 key frames are required.
  • If the motion is not too complicated, the key frames can be spaced a little farther apart.
  • There are several other tasks that may be required, depending on the application.
  • They include •..1 Motion Verification •..2 Editing and Production •..3 Synchronization of a soundtrack.
  • Many of the functions needed to produce general animations are now computer-generated.
  • A general-purpose language, such as C, Lisp, Pascal, or FORTRAN, is often used to program the animation functions, but several specialized animation languages have been developed.
  • (^) Animation functions include a graphics editor, a key-frame generator, an in-between generator, and standard graphics routines.
  • The graphics editor allows to design and modify object shapes, using spline surfaces, constructive solid-geometry methods, or other representation schemes.

Scene Description

  • A typical task in an animation specification is scene description.
  • This includes the positioning of objects and light sources, defining the photometric parameters (light-source intensities and surface-illumination properties), and setting the camera parameters (position, orientation, and lens characteristics).

Action Specification

  • Another standard function is action specification.
  • This involves the layout of motion paths for the objects and camera.

And the usual graphics routines required are: viewing and perspective transformations, geometric transformations to generate object movements as a function of accelerations or kinematic path specifications, visible-surface identification, and the surface- rendering operations.

Key frame systems

  • Key-frame systems are specialized animation languages designed to generate the in-betweens from the user-specified key frames.
  • Each object in the scene is defined as a set of rigid bodies connected at the joints and with a limited number of degrees of freedom.
  • For example, the single-arm robot in Fig. 8-2 has six degrees of freedom, which are called arm sweep, shoulder swivel, elbow extension, pitch, yaw, and roll.

The number of degrees of freedom are extended for this robot arm to nine by allowing three-dimensional translations for the base (Fig.8-3).

  • If base rotations are allowed, the robot arm can have a total of 12 degrees of freedom.
  • The human body, in comparison, has over 200 degrees of freedom.

Parameterized systems

  • Parameterized systems allow object-motion characteristics to be specified as part of the object definitions.
  • The adjustable parameters control such object characteristics as degrees of freedom, motion limitations, and allowable shape changes.

Scripting systems

  • Scripting systems allow object specifications and animation sequences to be defined with a user-input script.
  • From the script, a library of various objects and motions can be constructed.

Key frame systems

  • Each set of in-betweens from the specification of two (or more) key frames are generated.
  • Motion paths can be given with a kinematic description as a set of spline curves, or the motions can be physically based by specifying the forces acting on the objects to be animated.
  • For complex scenes, the frames are separated into individual components or objects called cels (celluloid transparencies), an acronym from cartoon animation.
  • Given the animation paths, the positions of individual objects can be interpolated between any two times.
  • With complex object transformations, the shapes of objects may change over time. Examples are clothes, facial features, magnified detail, evolving shapes, exploding or disintegrating objects, and transforming one object into another object.
  • If all surfaces are described with polygon meshes, then the number of edges per polygon can change from one frame to the next.
  • Thus, the total number of line segments can be different in different frames.

Morphing

Transformation of object shapes from one form to another is called morphing , which is a shortened form of metamorphosis.

  • Morphing methods can he applied to any motion or transition involving a change in shape.
  • Given two key frames for an object transformation, first the object specification is adjusted in one of the frames so that the number of polygon edges (or the number of vertices) is the same for the two frames.
  • This preprocessing step is shown in Fig. 8-4.
  • A straight-line segment in key frame k is transformed into two line segments in key frame k+1.

Since key frame k + 1 has an extra vertex, a vertex is added between vertices 1 and 2 in key frame k to balance the number of vertices (and edges) in the two key frames.

  • Using linear interpolation to generate the in- betweens, the added vertex in key frame k is transitioned into vertex 3' along the straight-line path shown in Fig. 8-5.
  • An example of a triangle linearly expanding into a quadrilateral is given in Fig. 8-6.

or the number of vertices to be added to a key frame.

  • Suppose the edge count is equalized, and parameters L (^) k and L (^) k+1 denote the number of line segments in two consecutive frames. Then L max = max(L^ k and L^ k+1),^ Lmin = min(Lk and L^ k+1 )^ -(1)
  • and N (^) e = Lmax mod Lmin N (^) s = int(L (^) max/L (^) min ) -(2)
  • Then the preprocessing is accomplished by •..1 dividing N (^) e edges of keyframemin into Ns + 1 sections •..2 dividing the remaining lines of keyframe (^) min into N^ s sections
  • For example, if L (^) k = 15 and L^ k+1 = 11, 4 lines of keyframe^ k+1 is divided into 2 sections each. The remaining lines of keyframe (^) k+1 are left intact.
  • If the vertex count is equalized, parameters V k and Vk+1 are used to denote the number of vertices in the two consecutive frames.
  • In this case, it is defined as Vmax = max(Vk,V^ k+1),^ V^ min = min(Vk,V^ k+1)^ -(3)
  • and -(4)
  • Preprocessing using vertex count is performed by •..1 adding N (^) p points to Nls line sections of keyframe (^) min •..2 adding N (^) p - 1 points to the remaining edges of keyframe^ min
  • For the triangle-to-quadrilateral example, V (^) k = 3 and Vk+1 = 4.
  • Both N (^) ls and N^ p are 1, so one point is added to one edge of keyframe^ k
  • No points would be added to the remaining lines of keyframe (^) k+.

Simulating Accelerations

  • Curve-fitting techniques are often used to specify the animation paths between key frames.
  • Given the vertex positions at the key frames, the positions can be fitted with linear or nonlinear paths.
  • Figure 8-7 illustrates a nonlinear fit of key-frame positions. This determines the trajectories for the in-betweens.
  • To simulate accelerations, the time spacing can be adjusted for the in- betweens.
  • For constant speed (zero acceleration), equal-interval time spacing is used for the in-betweens.

Suppose n in-betweens are required for key frames at times t 1 and t 2 (Fig. 8-8).

  • The time interval between key frames is then divided into n + 1 subintervals, yielding an in- between spacing of -(5)
  • The time for any in-between is calculated as -(6)
  • and values are determined for coordinate positions, color and other physical parameters.
  • Nonzero accelerations are used to produce realistic displays of speed changes, particularly at the beginning and end of a motion sequence.
  • (^) The start-up and slowdown portions of an animation path are modeled with spline or trigonometric functions.
  • Parabolic and cubic time functions have been applied to acceleration modeling, but trigonometric functions are more commonly used in animation packages.
  • To model increasing speed (positive acceleration), the time spacing between frames is increased so that greater changes in position occur as the object moves faster.
  • An increasing interval size is obtained with the function
  • For n in-betweens, the time for the jth in-between would then be calculated as -(7)
  • (^) where Δt is the time difference between the two key frames.
  • Figure 8-8 gives a plot of the trigonometric acceleration function and the in-between spacing for n = 5.
  • Decreasing speed (deceleration) is modeled with sinθ in the range 0 < θ < Π/2.
  • The time position of an in-between is now defined as -(8)
  • A plot of this function and the decreasing size of the time intervals is shown in Fig.8-9 for five in-betweens.
  • (^) Often, motions contain both speed-ups and slow-downs.
  • A combination of increasing-decreasing speed is modeled by first increasing the in-between time spacing, then this sparing is decreased.
  • A function to accomplish these time changes is
  • The time for the jth in-between is now calculated as -(9)
  • with Δt denoting the time difference for the two key frames.
  • Time intervals for the moving object first increase, then the time intervals decrease, as shown in Fig. 8-10.
  • Processing the in-betweens is simplified by initially modeling "skeleton" (wireframe) objects.
  • This allows interactive adjustment of motion sequences.
  • After the animation sequence is completely defined, objects can be fully rendered.

Motion specifications

  • There are several ways in which the motions of objects can be specified in an animation system.
  • Motions are defined in very explicit terms, or more abstract or more general approaches are used.
  • Descriptions of object behavior under the influence of forces are generally referred to as a physically based modeling.
  • (^) Examples of forces affecting object motion include electro-magnetic, gravitational, friction, and other mechanical forces.
  • Object motions are obtained from the force equations describing physical laws, such as Newton's laws of motion for gravitational and friction processes, Euler or Navier-Stokes equations describing fluid flow, and Maxwell's equations for electromagnetic forces.
  • For example, the general form of Newton's second law for a particle pf mass m is -(11)
  • with F as the force vector, and v as the velocity vector.
  • If mass is constant, the equation F = ma is solved, where a is the acceleration vector.
  • Otherwise, mass is a function of time, as in relativistic motions or the motions of space vehicles that consume measurable amounts of fuel per unit time.
  • Also inverse dynamics are used to obtain the forces, given the initial and final positions of objects and the type of motion.
  • Applications of physically based modeling include complex rigid-body systems and such nonrigid systems as cloth and plastic materials.
  • Typically, numerical methods are used to obtain the motion parameters incrementally from the dynamical equations using initial conditions or boundary values.

Important Questions

  1. What are the steps in design of animation sequence? Describe about each step briefly. [16]
  2. (^) List and explain about the steps of animation. [8]
  3. What are the issues involved in design of a story board layout with accompanying key frames for an animation of a single polyhedron
  4. Explain the procedure to generate the in-betweens for the key frames. [16]
  5. List the general-purpose animation languages. Explain the characteristics any are language [16]
  6. Describe linear list notation of animation languages. [8]
  7. What are the various types of interpolation used in animation. [8]
  8. How the morphing effects are implemented in key frame system bared animation languages? [8]
  9. Describe in detail about the methods of controlling animation. [16]
  10. Define an animation specification involving both acceleration and deceleration and implement the in between spacing calculations [16]
  11. Explain how the linear interpolation is implemented when the key-frame positions of an object are given [8]
  12. Explain how the kinematic description are simulated in key frame systems. [8]