Splines and Animation

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

CS 4204 Computer Graphics

Fundamentals of Computer Animation

CSE 167: Lecture 13: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Computer Graphics CS 543 Lecture 12 (Part 1) Curves. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

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

The Fundamental Principles of Animation

Computer Graphics. Geometric Modeling. Page 1. Copyright Gotsman, Elber, Barequet, Karni, Sheffer Computer Science - Technion. An Example.

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

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

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

COMP Visualization. Lecture 15 Animation

Geometric Modelling & Curves

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

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

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

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

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

Curves and Surfaces. Goals. How do we draw surfaces? How do we specify a surface? How do we approximate a surface?

Animation. The Twelve Principles of Animation

Computer Animation. CS 445/645 Fall 2001

Figure 2.1: Center of mass of four points.

Computer Animation: Art, Science and Criticism

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

If there are any questions, students are encouraged to or call the instructor for further clarification.

Character Animation from 2D Pictures and 3D Motion Data ALEXANDER HORNUNG, ELLEN DEKKERS, and LEIF KOBBELT RWTH-Aachen University

Modeling Curves and Surfaces

Blender 3D Animation

MT. DIABLO UNIFIED SCHOOL DISTRICT COURSE OF STUDY

animation animation shape specification as a function of time

Course Overview. CSCI 480 Computer Graphics Lecture 1. Administrative Issues Modeling Animation Rendering OpenGL Programming [Angel Ch.

Introduction to Computer Graphics Marie-Paule Cani & Estelle Duveau

Salt Lake City School District Student Learning Objectives (SLOs) Writing Template

(Refer Slide Time: 1:42)

Computer Animation. Jason Lawrence CS 4810: Graphics

Digital 3D Animation

Program of Study. Animation (1288X) Level 1 (390 hrs)

Chapter 1. Animation. 1.1 Computer animation

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

Interactive Computer Graphics

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

B2.53-R3: COMPUTER GRAPHICS. NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.

Maya 2014 Basic Animation & The Graph Editor

Kinematics & Dynamics

Essential Mathematics for Computer Graphics fast

Dhiren Bhatia Carnegie Mellon University

the points are called control points approximating curve

Geometric Constraints

CS 4620 Practicum Programming Assignment 6 Animation

2.5 Physically-based Animation

ART 269 3D Animation Fundamental Animation Principles and Procedures in Cinema 4D

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

CHAPTER 1 Splines and B-splines an Introduction

animation shape specification as a function of time

3D Modeling, Animation, and Special Effects ITP 215x (2 Units)

Computational Geometry. Lecture 1: Introduction and Convex Hulls

Datum > Curve KIM,ME,NIU

Computer Animation in Future Technologies

MODELING AND ANIMATION

CUFANM501A Create 3D digital character animation

TWO-DIMENSIONAL TRANSFORMATION

Finite Element Formulation for Plates - Handout 3 -

INTRODUCTION TO RENDERING TECHNIQUES

Computer Animation. Connelly Barnes CS 4810: Graphics

1. Abstract 2. Introduction 3. Algorithms and Techniques

View-Dependent Character Animation

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

Corollary. (f є C n+1 [a,b]). Proof: This follows directly from the preceding theorem using the inequality

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

2014 HSC Information and Digital Technology Digital Animation Marking Guidelines

B4 Computational Geometry

Animation. Persistence of vision: Visual closure:

DERIVATIVES AS MATRICES; CHAIN RULE

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 /

New Media production week 9

BEZIER CURVES AND SURFACES

NURBS Drawing Week 5, Lecture 10

Working With Animation: Introduction to Flash

An Instructional Aid System for Driving Schools Based on Visual Simulation

WSOA Introduction to Principles of Animation Course Outline 2013

3D Modeling, Animation, Compositing, and Special Effects ITP 215x (2 Units)

Animation (-4, -2, 0 ) + (( 2, 6, -4 ) - (-4, -2, 0 ))*.75 = (-4, -2, 0 ) + ( 6, 8, -4)*.75 = (.5, 4, -3 ).

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

NURBS Drawing Week 5, Lecture 10

Animation. Each frame is a photograph of a drawing Each drawing differs slightly from the one before it The drawings are photographed one- by- one

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

EMOT Evolutionary Approach to 3D Computer Animation

SkillsUSA 2014 Contest Projects 3-D Visualization and Animation

EMOT Evolutionary Approach to 3D Computer Animation

Mocap in a 3D Pipeline

CAD and Creativity. Contents

Topics in Computer Graphics Chap 14: Tensor Product Patches

Degree Reduction of Interval SB Curves

Key Assignments/ Common Assessments. This is the oral presentation at the beginning of 2 nd Semester.

Physics: Principles and Applications, 6e Giancoli Chapter 2 Describing Motion: Kinematics in One Dimension

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

A QUICK GUIDE TO THE FORMULAS OF MULTIVARIABLE CALCULUS

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

1.3.1 Position, Distance and Displacement

November 16, Interpolation, Extrapolation & Polynomial Approximation

Transcription:

CS4620/5620: Lecture 30 Splines and Animation 1 Announcements 4621 Friday (Animation) HW 3 released tonight 2

Bezier curve Recursive algorithm: Option 2 void DrawRecBezier (float eps) { if Linear (curve, eps) DrawLine (curve); else SubdivideCurve (curve, leftc, rightc); DrawRecBezier (leftc, eps); DrawRecBezier (rightc, eps); } Termination Criteria Test for linearity distance between control points distance of control points from line p 2 d 0 d1 p 4 d 0 < ε d 1 < ε p 1 p 3 4

B-splines We may want more continuity than C 1 B-splines are a clean, flexible way of making long splines with arbitrary order of continuity Various ways to think of construction a simple one is convolution An approximating spline 5 Deriving the B-Spline Approached from a different tack than Hermite-style constraints Want a cubic spline; therefore 4 active control points Want C 2 continuity Turns out that is enough to determine everything 6

Efficient construction of any B-spline B-splines defined for all orders order d: degree d 1 order d: d points contribute to value One definition: Cox-deBoor recurrence 7 B-spline construction, alternate view Recurrence ramp up/down Convolution smoothing of basis fn smoothing of curve 8

Cubic B-spline matrix 9 Cubic B-spline curves Treat points uniformly C 2 continuity C(t) = [(1-t) 3 P i-3 + (3t 3 6 t 2 + 4)P i-2 + (-3 t 3 + 3t 2 + 3t + 1) P i-1 + t 3 P i ]/6 Notice blending functions still add to 1

Cubic B-spline basis B-spline from each 4-point sequence matches previous, next sequence with C 2 continuity! Treats all points uniformly 11 Cubic B-spline basis B-spline from each 4-point sequence matches previous, next sequence with C 2 continuity! Treats all points uniformly 12

Rendering the spline-curve Given B-spline points d -1, d L+1 Compute Bézier points b 0, b 3L Use De Casteljau algorithm to render b 3i-2 1/3 b 3i-1 1/3 d 1/3 i 1/2 1/2 b 3i b 3i+1 b 3i+2 b 3i+3 d i+2 d i-1 d i+1 Equations and boundary conditions Equations b 3i = (b 3i-1 +b 3i+1 )/2 b 3i-1 = d i-1 /3 + 2d i /3 b 3i-2 = 2d i-1 /3 + d i /3 b 0 = d -1 Boundary conditions b 0 = d -1, b 1 = d 0, b 2 = (d 0 +d 1 )/2 b 3L = d L+1, b 3L-1 = d L, b 3L-2 = (d L-1 +d L )/2 d 1 b2 b 1 = d 0

Converting spline representations All the splines we have seen so far are equivalent all represented by geometry matrices where S represents the type of spline therefore the control points may be transformed from one type to another using matrix multiplication 15 Other types of B-splines Nonuniform B-splines discontinuities not evenly spaced allows control over continuity or interpolation at certain points e.g. interpolate endpoints (commonly used case) Nonuniform Rational B-splines (NURBS) ratios of nonuniform B-splines: x(t)/w(t), y(t)/w(t) key properties: invariance under perspective ability to represent conic sections exactly 16

Why Splines? Advantages Smooth curves: C 0, C 1, C 2 continuity Intuitive editing Smooth animation Compact: represent complex curves simply Convenient parametric representation Point p = (x,y) = (x(t), y(t)) 5 Surfaces Generalize by product of basis functions in 2 dimensions 18

Summary Splines Smoothness, continuity (C0, C1, C2) Hermite No convex hull property 2 points and 2 tangents Bezier Convex hull property De Casteljau evaluation Invariant to affine transformations B splines Non-interpolation; i.e., approximating splines C2 continuity 19 Animation 20

Animation Industry production process leading up to animation How animation works (very generally) Artistic process of animation Further topics in how it works 21 What is animation? Modeling = specifying shape Animation = specifying shape as a function of time Just modeling done once per frame? Need smooth, concerted movement Controlling shape = the technical problem Using shape controls = the artistic problem 22

Approaches to animation Straight ahead Draw/animate one frame at a time Can lead to spontaneity, but is hard to get exactly what you want 23 Approaches to animation Straight ahead Draw/animate one frame at a time Can lead to spontaneity, but is hard to get exactly what you want Pose-to-pose Top-down process: Plan shots using storyboards Plan key poses first Finally fill in the in-between frames 24

Pose-to-pose animation planning First work out poses that are key to the story Next fill in animation in between 25 Keyframe animation Keyframing is the technique used for pose-to-pose animation Head animator draws key poses just enough to indicate what the motion is supposed to be Assistants do in-betweening and draw the rest of the frames In computer animation substitute user and animation software Interpolation is the main operation Pro: lots of artistic control Con: Manually intensive 26

Principles of Animation Classic paper by Lasseter "Principles of Traditional Animation Applied To 3D Computer Animation", John Lasseter, ACM Computer Graphics, Volume 21 Number 4, July 1987 27 Principles of Animation Timing Ease In and Out (or Slow In and Out) Arcs Anticipation Exaggeration Squash and Stretch Secondary Action Follow Through and Overlapping Action Straight Ahead Action and Pose-To-Pose Action Staging Appeal Personality 28

Animation principles: timing Speed of an action is crucial to the impression it makes gives physical and emotional meaning examples with same keyframes, different times: 60 fr: looking around 30 fr: no 5 fr: just been hit 29 Timing Indicates emotional state Eg. Look over left shoulder, then right On a scale of 1 to 10 No in-between: snap 1 in-between: hit with force 2 in-betweens: nervous twitch 3 in-betweens: dodging something 4 in-betweens: giving an order 6 in-betweens: sees something inviting 9 in-betweens: thinking 10 in-betweens: stretching 30

Animation principles: ease in/out Real objects do not start and stop suddenly animation parameters shouldn t either straight linear interp. ease in/out a little goes a long way (just a few frames acceleration or deceleration for snappy motions) 31 Animation principles: moving in arcs Real objects also don t move in straight lines generally curves are more graceful and realistic 32

Animation principles: anticipation Most actions are preceded by some kind of wind-up 33 Animation principles: exaggeration Animation is not about exactly modeling reality Exaggeration is very often used for emphasis 34

Animation principles: squash & stretch Objects do not remain perfectly rigid as they move Adding stretch with motion and squash with impact: models deformation of soft objects 35 Animation principles: squash & stretch Objects do not remain perfectly rigid as they move Adding stretch with motion and squash with impact: scale object along direction of motion (elongate or squash) maintain constant volume indicates motion by simulating exaggerated motion blur 36

Animation principles: follow through We ve seen that objects don t start suddenly They also don t stop on a dime Let arm complete motion Let leg kick complete motion 37 Anim. principles: overlapping action Usually many actions are happening at once Have a plan 38

Principles of Animation Timing Ease In and Out (or Slow In and Out) Arcs Anticipation Exaggeration Squash and Stretch Follow Through and Overlapping Action Staging Appeal Personality 39 Animation principles: staging Want to produce clear, good-looking 2D images Attract attention to key character/actor need good camera angles, set design, and character positions rim lighting 40

Principles at work: weight 41 Computer-generated motion Interesting aside: many principles of character animation follow indirectly from physics Anticipation, follow-through, and many other effects can be produced by simply minimizing physical energy Seminal paper: Spacetime Constraints by Witkin and Kass in SIGGRAPH 1988 42