Top Banner

of 16

Presentation FIT'11 Sarfraz

Apr 06, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/3/2019 Presentation FIT'11 Sarfraz

    1/16

    KuwaitKuwaitUniversitUniversit

    Muhammad SarfrazDepartment of Information Science

    Kuwait University, Kuwait

  • 8/3/2019 Presentation FIT'11 Sarfraz

    2/16

    KuwaitKuwaitUniversitUniversit

    ` Motion Data video games, computer animation, animated videos

    ` Motion tweening is the process of generatingintermediate frames between keyframes tocreate an illusion of motion

    ` A simple and efficient method of tweening of

    motion data for skeletal animations using cubicCardinal spline.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    3/16

    KuwaitKuwaitUniversitUniversit

    ` Skeleton

    ` Bone

    ` Channel or Degree ofFreedom (DOF)

    ` Frame/Frame-rate

  • 8/3/2019 Presentation FIT'11 Sarfraz

    4/16

    KuwaitKuwaitUniversitUniversit

    We can plot the motion data

    of a joint for each channel

    separately such that:

    frame numbers are along

    horizontal axis translation or rotation

    values are along vertical

    axis.

    This kind of plot is called

    motion curve ofmotion

    signal.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    5/16

    KuwaitKuwaitUniversitUniversit

    ` BVH (Bio Vision Hierarchy) fileformat. This format is simple andsupported by many motioncapture devices and animationprograms.

    ` A BVH file has two sections: header section describes the initial

    hierarchy of the skeleton data section contains motion data.

    BVH can store motion for ahierarchical skeleton

    ` motion of the child bone is directlydependent on the motion of theparent bone.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    6/16

    KuwaitKuwaitUniversitUniversit

    ` Cardinal spline is a C1

    continuous curve.` A Cardinal spline segment, is

    defined by four control points,i.e., Pj-1, Pj, Pj+1 and Pj+2.

    ` The j th segment of Cardinalspline interpolates betweentwo middle control points, i.e.,Pjand Pj+1.

    ` The end control points, i.e., Pj-1 and Pj+2 are used tocalculate the tangents at Pjand Pj+1.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    7/16

    KuwaitKuwaitUniversitUniversit

    ` Equation of Cardinal spline forj th segment

    2

    23

    1

    23

    23

    1

    23

    )(]

    )23()2[(]1

    )3()2[(

    )2()(

    !

    jiiji

    iij

    ii

    jiiii

    PststPst

    tstsP

    tsts

    PstststtQ

  • 8/3/2019 Presentation FIT'11 Sarfraz

    8/16

    KuwaitKuwaitUniversitUniversit

    ` Motion tweening of a single channel of a joint.

    ` Objective is to generate smooth animation usin

    few keyframes

    ` Initially the user has to specify the keyframes`All the keyframes and their in-between frames

    constitute a complete motion curve of the

    channel.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    9/16

    KuwaitKuwaitUniversitUniversit

  • 8/3/2019 Presentation FIT'11 Sarfraz

    10/16

    KuwaitKuwaitUniversitUniversit

    1. Extract or specify the keyframes.

    2. Specify number of in-between frames

    between every pair of keyframes.

    3. Take each pair of adjacent keyframes asmiddle control points, i.e., Pj and Pj+1 of

    Cardinal spline. Take previous and next

    keyframes as first and last control points (Pj-1

    and Pj+2) respectively.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    11/16

    KuwaitKuwaitUniversitUniversit

    4. Obtain the motion tweening data by Cardinal

    spline interpolation between every pair of

    keyframes Pj and Pj+1.

    5. If the result is not satisfactory then go to step1, add more keyframes and repeat the

    process.

    6. Save the keyframes.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    12/16

    KuwaitKuwaitUniversitUniversit

    Environment of Simulation

    Hardware Operating System Prog. Language

    Inter Core Duo 2.4

    GHz

    Linux (Ubuntu 10.04

    LTS

    MATLAB R2010

    Animations used in the Simulation

    Animation Name Frame Rate (fps) Number of Frames

    Ladder-Climb 30 153

    Walk-Turn 24 119

  • 8/3/2019 Presentation FIT'11 Sarfraz

    13/16

    KuwaitKuwaitUniversitUniversit

  • 8/3/2019 Presentation FIT'11 Sarfraz

    14/16

    KuwaitKuwaitUniversitUniversit

  • 8/3/2019 Presentation FIT'11 Sarfraz

    15/16

    KuwaitKuwaitUniversitUniversit

    ` A simple and efficient method of tweening of

    motion data to generate smooth animation

    using cubic Cardinal spline.

    ` The keyframes serve as control points ofCardinal spline to generate in between frames

    by interpolation.

  • 8/3/2019 Presentation FIT'11 Sarfraz

    16/16

    KuwaitKuwaitUniversitUniversit

    Thanks!