Animation. Keyframe animation. CS4620/5620: Lecture 30. Rigid motion: the simplest deformation. Controlling shape for animation

Similar documents
Animation. CS 4620 Lecture 32. Cornell CS4620 Fall Kavita Bala

Animation. CS 4620 Lecture 33. Cornell CS4620 Fall Kavita Bala

CS354 Computer Graphics Rotations and Quaternions

CS 445 / 645 Introduction to Computer Graphics. Lecture 21 Representing Rotations

Quaternions and Rotations

Quaternions and Rotations

Quaternions and Rotations

Quaternions and Rotations

12.1 Quaternions and Rotations

Motivation. Parametric Curves (later Surfaces) Outline. Tangents, Normals, Binormals. Arclength. Advanced Computer Graphics (Fall 2010)

Animation. CS 465 Lecture 22

Animation and Quaternions

3D Transformations. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 11

Orientation & Quaternions

Animations. Hakan Bilen University of Edinburgh. Computer Graphics Fall Some slides are courtesy of Steve Marschner and Kavita Bala

Computer Animation Fundamentals. Animation Methods Keyframing Interpolation Kinematics Inverse Kinematics

Transformations Week 9, Lecture 18

3D Transformations. CS 4620 Lecture 10. Cornell CS4620 Fall 2014 Lecture Steve Marschner (with previous instructors James/Bala)

CS184: Using Quaternions to Represent Rotation

Translation. 3D Transformations. Rotation about z axis. Scaling. CS 4620 Lecture 8. 3 Cornell CS4620 Fall 2009!Lecture 8

Rotations (and other transformations) Rotation as rotation matrix. Storage. Apply to vector matrix vector multiply (15 flops)

CS 475 / CS 675 Computer Graphics. Lecture 16 : Interpolation for Animation

Inverse Kinematics Programming Assignment

3D Modelling: Animation Fundamentals & Unit Quaternions

Animation Curves and Splines 2

CS 775: Advanced Computer Graphics. Lecture 3 : Kinematics

CS230 : Computer Graphics Lecture 12: Introduction to Animation. Tamar Shinar Computer Science & Engineering UC Riverside

This week. CENG 732 Computer Animation. Warping an Object. Warping an Object. 2D Grid Deformation. Warping an Object.

Animation. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd 4/23/07 1

IMAGE-BASED RENDERING AND ANIMATION

Computer Animation II

Visual Recognition: Image Formation

CS 130 Final. Fall 2015

Part II: OUTLINE. Visualizing Quaternions. Part II: Visualizing Quaternion Geometry. The Spherical Projection Trick: Visualizing unit vectors.

Aalto CS-C3100 Computer Graphics, Fall 2016

Kinematics and Orientations

Animation. CS 4620 Lecture 19. Cornell CS4620 Fall 2013 Lecture Steve Marschner (with previous instructors James/Bala)

Chapter 3 : Computer Animation

Fundamentals of Computer Animation

Transformation. Jane Li Assistant Professor Mechanical Engineering & Robotics Engineering

For each question, indicate whether the statement is true or false by circling T or F, respectively.

Lecture 22 of 41. Animation 2 of 3: Rotations, Quaternions Dynamics & Kinematics

Lecture 22 of 41. Animation 2 of 3: Rotations, Quaternions Dynamics & Kinematics

Advanced Computer Graphics Transformations. Matthias Teschner

2D/3D Geometric Transformations and Scene Graphs

Auslan Jam: A Graphical Sign Language Display System

CS5620 Intro to Computer Graphics

Why animate humans? Why is this hard? Aspects of the Problem. These lectures. Animation Apreciation 101

Autonomous Navigation for Flying Robots

3D Rotations and Complex Representations. Computer Graphics CMU /15-662, Fall 2017

3D Transformations World Window to Viewport Transformation Week 2, Lecture 4

Visualizing Quaternions

Rotational Joint Limits in Quaternion Space. Gino van den Bergen Dtecta

Animating orientation. CS 448D: Character Animation Prof. Vladlen Koltun Stanford University

Representations and Transformations. Objectives

Animation. Traditional Animation Keyframe Animation. Interpolating Rotation Forward/Inverse Kinematics

Today. Today. Introduction. Matrices. Matrices. Computergrafik. Transformations & matrices Introduction Matrices

Vector Algebra Transformations. Lecture 4

Quaternion Interpolation

Animation. Animation

Robot Mapping. TORO Gradient Descent for SLAM. Cyrill Stachniss

Rotation parameters for model building and stable parameter inversion in orthorhombic media Cintia Lapilli* and Paul J. Fowler, WesternGeco.

Geometric Transformations

Fundamentals of Computer Animation

Rotations in 3D Graphics and the Gimbal Lock

Kinematical Animation.

Jorg s Graphics Lecture Notes Coordinate Spaces 1

3D Kinematics. Consists of two parts

10/11/07 1. Motion Control (wheeled robots) Representing Robot Position ( ) ( ) [ ] T

Quaternions & Rotation in 3D Space

Blending & State Machines. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2017

3D Transformations and Complex Representations. Computer Graphics CMU /15-662, Fall 2016

Coordinate Transformations. Coordinate Transformation. Problem in animation. Coordinate Transformation. Rendering Pipeline $ = $! $ ! $!

Retargetting Motion to New Characters. Project Report Xin LI

Applications of Dual Quaternions in Three Dimensional Transformation and Interpolation

animation computer graphics animation 2009 fabio pellacini 1 animation shape specification as a function of time

animation computer graphics animation 2009 fabio pellacini 1

Game Programming. Bing-Yu Chen National Taiwan University

Visualizing Quaternions

CSE 165: 3D User Interaction. Lecture #5: Selection

Chapter 4. Mechanism Design and Analysis

3D GRAPHICS. design. animate. render

2D Transformations Introduction to Computer Graphics Arizona State University

Linear and Affine Transformations Coordinate Systems

Transforms. COMP 575/770 Spring 2013

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

2D Object Definition (1/3)

Chapter 5.2 Character Animation

Lecture 5 2D Transformation

Inertial Measurement Units II!

Lab 2A Finding Position and Interpolation with Quaternions

Character Animation 1

Freeform Curves on Spheres of Arbitrary Dimension

Quaternions and Exponentials

Analysis of Euler Angles in a Simple Two-Axis Gimbals Set

COMPUTER ANIMATION 3 KEYFRAME ANIMATION, RIGGING, SKINNING AND CHARACTER ANIMATION. Rémi Ronfard, Animation, M2R MOSIG

Animations in Creo 3.0

What Is SimMechanics?

CMSC 425: Lecture 6 Affine Transformations and Rotations

Reading. Topics in Articulated Animation. Character Representation. Animation. q i. t 1 t 2. Articulated models: Character Models are rich, complex

Transcription:

Keyframe animation CS4620/5620: Lecture 30 Animation Keyframing is the technique used for pose-to-pose animation User creates key poses just enough to indicate what the motion is supposed to be Interpolate between the poses 1 2 Controlling shape for animation Start with modeling DOFs (control points) Deformations control those DOFs at a higher level Example: move first joint of second finger on left hand Animation controls control those DOFs at a higher level Example: open/close left hand Both cases can be handled by the same kinds of deformers Rigid motion: the simplest deformation Move a set of points by applying an affine transformation How to animate the transformation over time? Interpolate the matrix entries from keyframe to keyframe? Translation: ok start location, end location, interpolate Rotation: not so good 3 4 Rigid motion: the simplest deformation Parameterizing rotations start end 5 Euler angles Rotate around x, then y, then z Problem: gimbal lock If two axes coincide, you lose one DOF Unit quaternions A 4D representation (like 3D unit vectors for 2D sphere) Good choice for interpolating rotations These are first examples of motion control Matrix = deformation Angles/quaternion = animation controls 6

Quaternions Remember that Orientations can be expressed as rotation Why? Start in a default position (say aligned with z axis) New orientation is rotation from default position Rotations can be expressed as (axis, angle) Quaternion for Rotation Rotate about axis a by angle! Quaternions let you express (axis, angle) 7 8 Quaternions for Rotation Review complex numbers A quaternion is an extension of complex numbers 9 10 Review complex numbers ONB in quaternions Quaternion is extension of complex number in 4D space Each of i, j and k are three square roots of 1 Cross-multiplication is like cross product 11 12

Quaternion Properties Linear combination of 1, i, j, k Quaternion Properties Associative Not commutative Multiplication Unit quaternion 13 14 Quaternion for Rotation Rotate about axis a by angle! A point in space is a quaternion with 0 scalar Note: unit quaternion 15 16 Matrix for quaternion A point in space is a quaternion with 0 scalar Rotation is computed as follows See Buss 3D CG: A mathematical introduction with OpenGL, Chapter 7 17 18

Why Quaternions? Fast, few operations, not redundant Numerically stable for incremental changes Composes rotations nicely Convert to matrices at the end Biggest reason: spherical interpolation Interpolating between quaternions Why not linear interpolation? Need to be normalized Does not have constant rate of rotation 19 20 Intuitive interpolation between different orientations Nicely represented through quaternions Useful for animation Given two quaternions, interpolate between them q2 q Shortest path between two points on sphere Geodesic, on Great Circle t q1 21 22 Quaternion Interpolation q2 w q Shortest arc on the 4D unit sphere between q1 and q2 Path is spherical geodesic Uniform angular rotation velocity about a fixed axis v t q1 23 24

Practical issues When angle gets close to zero, use small angle approximation degenerate to linear interpolation between q1 and q2 When angle close to 180, there is no shortest geodesic. Be careful q is same rotation as -q if q1 and q2 angle < 90, slerp between them else, slerp between q1 and -q2 Composing rotations q1 and q2 are two rotations First, q1 then q2 25 26