Interactive Computer Graphics



Similar documents
Computers in Film Making

CS 4204 Computer Graphics

Computer Animation. Lecture 2. Basics of Character Animation

animation animation shape specification as a function of time

Kinematical Animation

Computer Animation. Computer Animation. Principles of Traditional Animation. Outline. Principles of Traditional Animation

Motion Capture Technologies. Jessica Hodgins

C O M P U C O M P T U T E R G R A E R G R P A H I C P S Computer Animation Guoying Zhao 1 / 66 /

Graphics. Computer Animation 고려대학교 컴퓨터 그래픽스 연구실. kucg.korea.ac.kr 1

Fundamentals of Computer Animation

Introduction to Computer Graphics Marie-Paule Cani & Estelle Duveau

Metrics on SO(3) and Inverse Kinematics

animation shape specification as a function of time

This week. CENG 732 Computer Animation. Challenges in Human Modeling. Basic Arm Model

Animation. Persistence of vision: Visual closure:

CMSC 425: Lecture 13 Animation for Games: Basics Tuesday, Mar 26, 2013

3D Tranformations. CS 4620 Lecture 6. Cornell CS4620 Fall 2013 Lecture Steve Marschner (with previous instructors James/Bala)

The 3D rendering pipeline (our version for this class)

Maya 2014 Basic Animation & The Graph Editor

Today. Keyframing. Procedural Animation. Physically-Based Animation. Articulated Models. Computer Animation & Particle Systems

Our One-Year 3D Animation Program is a comprehensive training in 3D using Alias

Computer Animation. Jason Lawrence CS 4810: Graphics

Solving Simultaneous Equations and Matrices

Chapter 1. Animation. 1.1 Computer animation

Chapter 1. Introduction. 1.1 The Challenge of Computer Generated Postures

Mechanics lecture 7 Moment of a force, torque, equilibrium of a body

Computer Animation. CS 445/645 Fall 2001

CIS 536/636 Introduction to Computer Graphics. Kansas State University. CIS 536/636 Introduction to Computer Graphics

CG T17 Animation L:CC, MI:ERSI. Miguel Tavares Coimbra (course designed by Verónica Orvalho, slides adapted from Steve Marschner)

SimFonIA Animation Tools V1.0. SCA Extension SimFonIA Character Animator

Animation. The Twelve Principles of Animation

Blender 3D Animation

CS 4620 Practicum Programming Assignment 6 Animation

Human-like Arm Motion Generation for Humanoid Robots Using Motion Capture Database

Physics 160 Biomechanics. Angular Kinematics

Motion Capture Assisted Animation: Texturing and Synthesis

Fundamentals of Computer Animation

CARTOON BUILDER. Character animation the art of. Creating animated characters with Blender KNOW-HOW. Pulling Strings

Animations in Creo 3.0

Character Animation Tutorial

Creating Scenes and Characters for Virtools in OpenFX

INSTRUCTOR WORKBOOK Quanser Robotics Package for Education for MATLAB /Simulink Users

Logistics. Projects. Announcement. Animation pipeline. Plan for today. Animation Pipeline, Principles, Tools. Test . Test file in mycourses

Computer Animation in Future Technologies

Lesson Plan. Performance Objective: Upon completion of this assignment, the student will be able to identify the Twelve Principles of Animation.

Mocap in a 3D Pipeline

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Friday 18 th January 2008.

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 33 November 26, 2012

Figure Cartesian coordinate robot

Goldsmiths, University of London. Computer Animation. Goldsmiths, University of London

Lecture L6 - Intrinsic Coordinates

B4 Computational Geometry

Kinematics & Dynamics

Design of a six Degree-of-Freedom Articulated Robotic Arm for Manufacturing Electrochromic Nanofilms

Autodesk Fusion 360: Assemblies. Overview

DESIGN, IMPLEMENTATION, AND COOPERATIVE COEVOLUTION OF AN AUTONOMOUS/TELEOPERATED CONTROL SYSTEM FOR A SERPENTINE ROBOTIC MANIPULATOR

M2: Animation Techniques

MODELING AND ANIMATION

FAV CMPTR ANIMATION: INSTRUCTOR GINA KAMENTSKY

Robotics. Chapter 25. Chapter 25 1

Republic Polytechnic School of Information and Communications Technology C391 Animation and Visual Effect Automation.

CHAPTER 6 TEXTURE ANIMATION

KINEMATICS OF PARTICLES RELATIVE MOTION WITH RESPECT TO TRANSLATING AXES

Fundamentals of Computer Animation

Range of Motion. A guide for you after spinal cord injury. Spinal Cord Injury Rehabilitation Program

Rotation Matrices and Homogeneous Transformations

521493S Computer Graphics. Exercise 2 & course schedule change

Given a point cloud, polygon, or sampled parametric curve, we can use transformations for several purposes:

Project 2: Character Animation Due Date: Friday, March 10th, 11:59 PM

Outline. Animation. 1. Squash and Stretch. Overview: Traditional Animation. Squash and Stretch Cont. 2. Timing and Motion

Using Autodesk HumanIK Middleware to Enhance Character Animation for Games

Course Syllabus. Tuesday 4 pm to 5 pm & Thursday 4 to 5 pm

Motion Capture Assisted Animation: Texturing and Synthesis

Industrial Robotics. Training Objective

Digital 3D Animation

Essential Mathematics for Computer Graphics fast

CE801: Intelligent Systems and Robotics Lecture 3: Actuators and Localisation. Prof. Dr. Hani Hagras

General Guidelines. Neck Stretch: Side. Neck Stretch: Forward. Shoulder Rolls. Side Stretch

Orthogonal Projections

ACTUATOR DESIGN FOR ARC WELDING ROBOT

The Animation Production Process. by Randy Gossman

DIGITAL MEDIA ARTS. DMA 225 Computer Animation lecture/4 studio hours Hours: lecture/laboratory/other (specify)

EGOSCUE CLINIC PAIN/POSTURE STRETCHES 1. Standing Arm Circles: Helps Restore Upper Body Strength

Exercise 1: Knee to Chest. Exercise 2: Pelvic Tilt. Exercise 3: Hip Rolling. Starting Position: Lie on your back on a table or firm surface.

-Balance on hands and feet rolling the upper hamstring area.

Compositing a 3D character over video footage in Maya Jean-Marc Gauthier, Spring 2008

ISOMETRIC EXERCISE HELPS REVERSE JOINT STIFFNESS, BUILDS MUSCLE, AND BOOSTS OVERALL FITNESS.

When you have completed this lesson you will be able to: identify some common simple machines explain how simple machines make work easier

are you reaching your full potential...

Clasp hands behind hips and stretch arms down towards floor. Roll shoulder back to open chest. Do not let back arch. Power Skips

Renishaw apply innovation TM. Calibrating 5-axis machines to improve part accuracy. 5Align

Path Tracking for a Miniature Robot

MovieClip, Button, Graphic, Motion Tween, Classic Motion Tween, Shape Tween, Motion Guide, Masking, Bone Tool, 3D Tool

Scripted Operator Shoulder

Introduction to. With Slides from Dongho Kim and Karen Liu. School of Computer Soongsil University Animation. Computer Animation

Structural Analysis - II Prof. P. Banerjee Department of Civil Engineering Indian Institute of Technology, Bombay. Lecture - 02

Transcription:

Interactive Computer Graphics Lecture 18 Kinematics and Animation Interactive Graphics Lecture 18: Slide 1

Animation of 3D models In the early days physical models were altered frame by frame to create animation - eg King Kong 1933. Computer support systems for animation began to appear in the late 1970, and the first computer generated 3D animated full length film was Toy Story (1995). Interactive Graphics Lecture 18: Slide 2

Computer Aids to Animation Fully automatic animation has not proved successful. However computer tools to support animation have developed rapidly. These remove much of the tedious work of the animator, and allow the creation of spectacular special effects. Basic Approaches are: Physical Models Procedural Methods Keyframing Interactive Graphics Lecture 18: Slide 3

Physical Modelling This approach is suitable for inanimate objects or effects where there is a simple physical model: Bouncing balls Cars on rough roads Effects can be created by Newtonian mechanics In some cases composite models can be applied Spring mass damper arrays for fluttering flags Particle systems for fire smoke etc. Interactive Graphics Lecture 18: Slide 4

Procedural Approach The behaviour of an object is described by a procedure, sometimes specified by a script. This kind of approach is appropriate for well known behaviours in inanimate objects: eg crack propagation in glass or concrete which is difficult to model physically but easy to describe procedurally. Interactive Graphics Lecture 18: Slide 5

Keyframe Approach Animators specify two positions of the skeleton (keyframes) a short time apart. The computer then calculates a number of in between positions to effect a smooth movement between the two keyframes. This was a traditional method in hand drawn animation where the senior animator drew the key frames and some stooge would then laboriously draw all the in betweens. Interactive Graphics Lecture 18: Slide 6

Creating In-betweens The in-betweens are created by interpolation. For certain objects they can be created by using paths of motion defined by, for example, spline curves. However there are difficulties: Observing the laws of physics Making plausible movements Interactive Graphics Lecture 18: Slide 7

Movement Control When animating vital characters any model animation must be kept plausible. Hence computer systems are often based on jointed skeletons. Each link in the articulated chain is rigid. The movement is constrained by the degree of freedom at each joint. The skeleton can be fleshed out in any way. Interactive Graphics Lecture 18: Slide 8

Luxo Jr. (1987) This award winning short film was the hailed as the first example of computer generated 3D animation that was as natural as hand crafted animation. It was based on the use of an articulated skeleton. http://www.pixar.com/shorts/ljr/theater/short_320.html Interactive Graphics Lecture 18: Slide 9

Complexities of Natural Motion Natural motions are complex, as shown by Eadweard Muybridge's horse photographs (1878). Some systematic approach is needed for scripting the motion of the skeleton. Interactive Graphics Lecture 18: Slide 10

Motion Capture One approach to defining the movement is to use motion capture - for example Gollum in the Lord of the Rings films. These methods require laborious data capture and are surprisingly hard to automate. Interactive Graphics Lecture 18: Slide 11

Motion Capture King Kong (2005) also used motion capture. The actor wore a blue suit and was marked with around 80 identifiable spots that could be tracked by cameras. The spots were mapped (not linearly) to corresponding points on the computer Kong model. The actor had to study gorillas and then imitate their movements. Interactive Graphics Lecture 18: Slide 12

Kinematics Hip Ankle Thigh Knee Shin Foot Although natural skeletons are not strictly rigid, it is a good approximation to treat them as such and thus constrain the movement. The study of the movement of articulated chains began in mechanical engineering of robots and is called kinematics. Interactive Graphics Lecture 18: Slide 13

Degrees of freedom Hinge Joint - One degree of freedom Knee or elbow joint Saddle - Two degrees of freedom Wrist/Hand joints Socket Joint - Three degrees of freedom Hip, shoulder neck Interactive Graphics Lecture 18: Slide 14 Images from www.shockfamily.net

Euler Angles At any joint we can specify the orientation of one link relative to the other by the Euler angles. These encode pitch, roll and yaw. The links are fixed in length (rigid), so the position of end of the chain is completely defined by a set of Euler angles. For the leg we have 3(hip) + 1(knee) + 1 (ankle) = 5 variables (Euler Angles) to determine the end point. Interactive Graphics Lecture 18: Slide 15

Euler Angles Euler was the first mathematician to prove that any rotation of 3D space could be achieved by three independent rotations. There is no standard way of achieving this, but the usual convention is to: 1. Rotate about Z 2. Rotate about X 3. Rotate about Z The complete Euler rotation matrix R E is therefore: Interactive Graphics Lecture 18: Slide 16

Euler Angles This formulation is not very intuitive, so to see what is happening consider transforming a vector w lying along the z axis. The first rotation will not change w but turns the u and v directions about the w. The second matrix can rotate w to point to any position in the y-z plane. Y Y w Interactive Graphics Lecture 18: Slide 17 Z Z w

Euler Angles The last rotation about the z axis can make the projection of w point in any direction in the x-y plane. Looking from the positive z axis we have: Y Y X w X w So the last two rotations can orient w in any direction in the 3D space. Interactive Graphics Lecture 18: Slide 18

Euler Angles The first rotation turns the u and v directions about the w. This would be equivalent to a roll, or the rotation of an image about its centre if w were the viewing direction. Thus the specifying the three Euler angles allows us to rotate a (u,v,w) axis system to any orientation we require, while preserving its orthogonality. Interactive Graphics Lecture 18: Slide 19

Forward Kinematics Forward kinematics is used in robot control. Given a specification of the Euler angles of each joint or an articulated robot arm we calculate the position and orientation of its end point. This is a well posed problem and can be solved by matrix transformations of space similar to the ones that we have already seen in use - for example in first person shoot 'em ups. Interactive Graphics Lecture 18: Slide 20

Forward Kinematics Computation We define a coordinate system at the start of a chain and at each joint. Each new coordinate system is defined in the co-ordinate system of the previous joint. Thus the position C i and the direction vectors {u i, v i, w i } of frame i are defined using the frame i-1 coordinate system. Frame i u i v i w i Link i-1 Frame i-1 Link i Interactive Graphics Lecture 18: Slide 21

Forward Kinematics Computation The position C i and the direction vectors {u i, v i, w i } of each frame can be calculated simply using the Euler rotation matrix R E : u i = [1,0,0]R E, v i = [0,1,0]R E, w i = [0,0,1]R E and C i = [0,0,L i-1 ]R E where L i-1 is the length of link (i-1). We can express positions and directions in frame i in the coordinate system of frame i-1 by a matrix transformation, which is the inverse of the viewing transformation discussed earlier in the course. Frame i u i v i w i Link i-1 Frame i-1 Link i Interactive Graphics Lecture 18: Slide 22

Revision - the viewing transformation To transform the scene coordinates to the axis system {u,v,w} system (using pre-multiplication) we used: Y u w v X Z Y Z C X Interactive Graphics Lecture 18: Slide 23

Revision - Viewing transformation The inverse of the viewing transformation (which we need for forward kinematics) can be written as: which can be verified by multiplying out: Interactive Graphics Lecture 18: Slide 24

Forward Kinematics Computation If we denote the transformation from the i th to the i-1 th frame as: Then the complete forward transformation (using premultiplication) can be seen to be: Interactive Graphics Lecture 18: Slide 25

Inverse Kinematics For graphics applications we want the opposite process. We wish to specify some path for the end point of the chain, and calculate the relative positions of all the other links. This is an ill posed problem (there are infinitely many solutions for some chains). Hence we need to find a constrained solution minimising for example, the joint movements. Interactive Graphics Lecture 18: Slide 26

Inverse Kinematics In practice, inverse kinematics can be used to calculate inbetween frames. For example, to generate ten frames of a leg movement, we define the ten steps that make up the foot movement, and estimate the changes in the Euler angles of the rest of chain that implement those changes. In the simple articulated leg chain there are five Euler angles. The constrained angles are initialised to zero. Interactive Graphics Lecture 18: Slide 27

Inverse Kinematics by Gradient Descent One way to solve the problem is to use gradient descent. Let E be the distance between the end point and its target. For each Euler angle we find de/d using forward kinematics, replacing with and calculating E. We then update the angles using: t = t-1 - de/d Interactive Graphics Lecture 18: Slide 28

Further Constraints Applying gradient descent with small steps should find a solution that involves only small joint movements. However, over time it is possible that a skeleton will reach an implausible pose. One solution is to constrain the optimisation to avoid poor poses. Poor pose is difficult to define, and needs analysis of videos of actual motion. Interactive Graphics Lecture 18: Slide 29

In Summary Currently human intervention is a necessary part of creating realistic living model animation. Either motion capture or expert animator input. Physical modelling and procedural methods are successful in creating movements in inanimate objects. Inverse kinematics can take some of the burden out of living model animation, but is limited and is an interesting current research area. Interactive Graphics Lecture 18: Slide 30