1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course,

Slides:



Advertisements
Similar presentations
Polynomial Approximation PSCI 702 October 05, 2005.
Advertisements

March 1, 2009Dr. Muhammed Al-Mulhem1 ICS 415 Computer Graphics Hermite Splines Dr. Muhammed Al-Mulhem March 1, 2009 Dr. Muhammed Al-Mulhem March 1, 2009.
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
CS 445/645 Fall 2001 Hermite and Bézier Splines. Specifying Curves Control Points –A set of points that influence the curve’s shape Knots –Control points.
Spline Functions – An Elegant View of Interpolation Bruce Cohen David Sklar
MATH 685/ CSI 700/ OR 682 Lecture Notes
CS 445 / 645 Introduction to Computer Graphics Lecture 22 Hermite Splines Lecture 22 Hermite Splines.
Chapter 18 Interpolation The Islamic University of Gaza
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
Dr. S.M. Malaek Assistant: M. Younesi
Splines II – Interpolating Curves
1Notes  Assignment 0 is being marked  Textbook reference for arc-length parameterization:  Section 3.2.
1Notes  Assignment 0 is due today!  To get better feel for splines, play with formulas in MATLAB!
Curve-Fitting Interpolation
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 12: Spline Curves (review) Ravi Ramamoorthi Most material.
1cs426-winter-2008 Notes  Assignment 0 is due today  MATLAB tutorial tomorrow 5-7 if you’re interested (see web-page for link)
1 Dr. Scott Schaefer Catmull-Rom Splines: Combining B-splines and Interpolation.
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Modelling: Curves Week 11, Wed Mar 23
RASTER CONVERSION ALGORITHMS FOR CURVES: 2D SPLINES 2D Splines - Bézier curves - Spline curves.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Curves Week 13, Mon 24 Nov 2003.
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
1Notes  Make sure you are working on assignment 0  Textbook reference for splines:  Section 3.1 and Appendix B4.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
This Week Week Topic Week 1 Week 2 Week 3 Week 4 Week 5
V. Space Curves Types of curves Explicit Implicit Parametric.
Curves.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Splines Vida Movahedi January 2007.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
INTERPOLATION & APPROXIMATION. Curve algorithm General curve shape may be generated using method of –Interpolation (also known as curve fitting) Curve.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
CO Games Development 1 Week 12 Interpolation, Path Smoothing & Splines
CS 445/645 Fall 2001 Splines/Film/Animation. Final Exam Thursday, December 13 th from 7 – 10 p.m. –Room Olsson 011 You may use one sheet of notes (8.5.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Computer Graphics Representing Curves and Surfaces.
Computers in Civil Engineering 53:081 Spring 2003 Lecture #15 Spline Interpolation.
Mohiuddin Ahmad SUNG-BONG JANG Interpolation II (8.4 SPLINE INTERPOLATION) (8.5 MATLAB’s INTERPOLATION Functions)
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
Curves: ch 4 of McConnell General problem with constructing curves: how to create curves that are “smooth” CAD problem Curves could be composed of segments.
Cubic Spline Interpolation. Cubic Splines attempt to solve the problem of the smoothness of a graph as well as reduce error. Polynomial interpolation.
Spline Interpolation A Primer on the Basics by Don Allen.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
Rendering Bezier Curves (1) Evaluate the curve at a fixed set of parameter values and join the points with straight lines Advantage: Very simple Disadvantages:
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 17 and 18 Interpolation.
MA4229 Lectures 15, 16 Week 13 Nov 1, Chapter 18 Interpolation by piecewise polynomials.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
Introduction to Parametric Curve and Surface Modeling.
Interpolation - Introduction
Lecture 29: Modeling Data. Data Modeling Interpolate between data points, using either linear or cubic spline models Model a set of data points as a polynomial.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
Chapter 10-2: Curves.
Curve-Fitting Spline Interpolation
Chapter 15 Curve Fitting : Splines
© University of Wisconsin, CS559 Spring 2004
Spline Interpolation Class XVII.
Splines There are cases where polynomial interpolation is bad
Introduction to Parametric Curve and Surface Modeling
Type to enter a caption. Computer Graphics Week 10 Lecture 1.
Overview June 9- B-Spline Curves June 16- NURBS Curves
Presentation transcript:

1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course, but it can be extremely useful for plotting curves, testing formulas, debugging mathematical expressions, etc.

2cs426-winter-2008 Example: piecewise linear spline  Restrict all polynomials to be linear f(t)=a i (t-t i )+b i in [t i, t i+1 ]  Enforce continuity: make each line segment interpolate the control point on either side a i (t i -t i )+b i =y i and a i (t i+1 -t i )+b i =y i+1  Solve to get a i =(y i+1 -y i )/(t i+1 -t i ) b i =y i  End result: straight line segments connecting the control points  C 0 but not C 1

3cs426-winter-2008 Choices in Animation  Piecewise linear usually not smooth enough: need higher degree polynomials  For motion curves, cubic splines basically always used  Three main choices: Hermite splines: interpolating, up to C 1 Catmull-Rom: interpolating C 1 B-splines: approximating C 2

4cs426-winter-2008 Cubic Hermite Splines  Our generic cubic in an interval [t i,t i+1 ] is q i (t) = a i (t-t i ) 3 +b i (t-t i ) 2 +c i (t-t i )+d i  Make it interpolate endpoints: q i (t i )=y i and q i (t i+1 )=y i+1  And make it match given slopes: q i ’(t i )=s i and q i ’(t i+1 )=s i+1  Work it out to get

5cs426-winter-2008 Hermite Basis  Rearrange the solution to get  That is, we’re taking a linear combination of four basis functions Note the functions and their slopes are either 0 or 1 at the start and end of the interval

6cs426-winter-2008 Breaking Hermite Splines  Usually specify one slope at each knot  But a useful capability: use a different slope on each side of a knot We break C 1 smoothness, but gain control Can create motions that abruptly change, like collisions  Aside: artists like to break things! Animation systems should have as much flexibility as possible

7cs426-winter-2008 Catmull-Rom Splines  This is really just a C 1 Hermite spline with an automatic choice of slopes Use a 2nd order finite difference formula to estimate slope from values For equally spaced knots, simplifies to