This Week Week Topic Week 1 Week 2 Week 3 Week 4 Week 5

Slides:



Advertisements
Similar presentations
© University of Wisconsin, CS559 Spring 2004
Advertisements

#8: Curves and Curved Surfaces CSE167: Computer Graphics Instructor: Ronen Barzel UCSD, Winter 2006.
Lecture 10 Curves and Surfaces I
Interpolation A method of constructing a function that crosses through a discrete set of known data points. .
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
Cubic Curves CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
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.
© University of Wisconsin, CS559 Spring 2004
CS 445 / 645 Introduction to Computer Graphics Lecture 22 Hermite Splines Lecture 22 Hermite Splines.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Splines II – Interpolating Curves
CS CS 175 – Week 9 B-Splines Blossoming, Bézier Splines.
Orientation & Quaternions
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,
Curves Locus of a point moving with one degree of freedom
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Cubic Bezier and B-Spline Curves
1 Dr. Scott Schaefer Catmull-Rom Splines: Combining B-splines and Interpolation.
ENDS 375 Foundations of Visualization Geometric Representation 9/30/04.
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.
Curve Modeling Bézier Curves
Bresenham’s Algorithm. Line Drawing Reference: Edward Angel’s book: –6 th Ed. Sections 6.8 and 6.9 Assuming: –Clipped (to fall within the window) –2D.
Curves and Surfaces CSE3AGR - Paul Taylor Polynomials of Degree n Degree is equal to the highest exponent of a term. Higher exponents result in.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
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.
Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves.
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to virtual engineering Óbuda University John von Neumann Faculty of Informatics Institute of Intelligent Engineering Systems Lecture 3. Description.
Curves.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Interpolating Values.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Chapter VI Parametric Curves and Surfaces
CO Games Development 1 Week 12 Interpolation, Path Smoothing & Splines
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Computer Graphics Representing Curves and Surfaces.
CS 551/645 Fall 2000 Parameterized Rotations, Curves, and Surfaces.
Geometric Modelling 2 INFO410 & INFO350 S Jack Pinches
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Basic Theory (for curve 02). 1.3 Parametric Curves  The main aim of computer graphics is to display an arbitrary surface so that it looks real.  The.
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.
Review CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2005.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
CS 551/651 Advanced Graphics Technical Background.
11/26/02(C) University of Wisconsin Last Time BSplines.
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.
CS 450: Computer Graphics PARAMETRIC SPLINES AND SURFACES
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
This Week WeekTopic Week 1 Coordinate Systems, Basic Functions Week 2 Trigonometry and Vectors (Part 1) Week 3 Vectors (Part 2) Week 4 Vectors (Part 3:
Ship Computer Aided Design
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
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:
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
Introduction to Parametric Curve and Surface Modeling.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
© University of Wisconsin, CS559 Spring 2004
Computer Graphics Lecture 38
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
Chapter XVII Parametric Curves and Surfaces
Presentation transcript:

This Week Week Topic Week 1 Week 2 Week 3 Week 4 Week 5 Coordinate Systems, Basic Functions Week 2 Trigonometry and Vectors (Part 1) Week 3 Vectors (Part 2) Week 4 Vectors (Part 3: Locus) Week 5 Tutorial A: Question and answer session for weeks 1-4 Week 6 Matrices (Part 1) Week 7 Matrices (Part 2) and Transformations Week 8 Complex numbers Week 9 Curves Week 10 Tutorial B: Question and answer session focusing on weeks 6-9

Short Course in: Mathematics and Analytic Geometry Week 9 Curves

LERP – Linear Interpolation Given two position vectors r1 and r2, a linear interpolation is a straight line joining their respective points P1 and P2.

LERP – Linear Interpolation Oh! But, hang on a minute! LERP is just the line equation defined in the interval: 0  t  1:

SLERP – Spherical Linear Interpolation SLERP is an extension on LERP to the case of a curve interpolation on a spheroid. In the most simplest case, we have two orthogonal unit position vectors r0 and r1 and we interpolate between 0 and π/2 radians with a parameter in the interval 0  t  1.

SLERP – Spherical Linear Interpolation In the general case, position vectors r0 and r1 are not orthogonal and we want to interpolate between 0 and some angle .

SLERP – Spherical Linear Interpolation The general SLERP Formula is derived as follows:

Quaternion SLERP Instead of vectors we can plug in unit quaternion to interpolate unit quaternion at parametric angles: Where:

Parametric Curves Any 2D curve can be projected in 3D space onto a parametric plane:

Parametric Curves Similarly, in polar coordinates where f() define radius length: Or in cylindrical space (in this case, an elliptic spiral):

Bezier Curves However, some parametric curves can be inflexible and difficult to design. Ideally, we would like to construct curves in a predictable way from some fixed points. We could join points with LERPs to form a piecewise curve:

Bezier Curves But, the curve is not smooth: Bezier curves can be constructed as a recursive system of LERPs (De Casteljau's algorithm). For example:

Bezier Curves

Bezier Curves The general form of Bezier curves follows a binomial expansion pattern:

Inverse Bezier Let us assume we want a cubic Bezier curve: That interpolates points p1 and p2 at times t1 and t2 respectively (remember, the ends are fixed): We solve for control points r1 and r2, by finding the inverse of the matrix:

Catmull-Rom Spline Using Tangents like this, curves can be joined with C1 continuity.

Cubic B-Splines With B-Splines, continuity is always one degree lower than the degree of each curve piece. Therefore, a cubic B-Spline has continuity C2. The following curve connects pi to pi+1, for 0t 1: Cubic B-Splines do not interpolate their end points.

Cubic B-Splines In general, a B-Spline can be defined as follows (the ti are called knots):

Bezier Surfaces Bezier curves can be extended to surfaces on unit squares.

B-Spline Surfaces