11/6/2016 06:55 Graphics II 91.547 Introduction to Parametric Curves and Surfaces Session 2.

Slides:



Advertisements
Similar presentations
Splines I – Curves and Properties
Advertisements

Lecture Notes #11 Curves and Surfaces II
Lecture 10 Curves and Surfaces I
08/30/00 Dinesh Manocha, COMP258 Hermite Curves A mathematical representation as a link between the algebraic & geometric form Defined by specifying the.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Curves Locus of a point moving with one degree of freedom
Designing Parametric Cubic Curves Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Drawing Parametric Curves Jean-Paul Mueller. Curves - The parametric form of a curve expresses the value of each spatial variable for points on the curve.
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
RASTER CONVERSION ALGORITHMS FOR CURVES: 2D SPLINES 2D Splines - Bézier curves - Spline curves.
Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
COEN Computer Graphics I
Chapter 10: Curves and Surfaces Part 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Chapter 16 – Vector Calculus
Designing Parametric Cubic Curves
Parts of Mortenson Chapter 6-9,
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
Computer Graphics Lecture 13 Curves and Surfaces I.
Curves and Surfaces (cont’) Amy Zhang. Conversion between Representations  Example: Convert a curve from a cubic B-spline curve to the Bézier form:
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.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Machine Learning CUNY Graduate Center Lecture 3: Linear Regression.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
19/13/ :20 UML Graphics II Parametric Curves and Surfaces Session 3.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves.
V. Space Curves Types of curves Explicit Implicit Parametric.
Numerical Computation
2D/3D Shape Manipulation, 3D Printing Shape Representations Slides from Olga Sorkine February 20, 2013 CS 6501.
Korea University Jung Lee, Computer Graphics Laboratory 3D Game Engine Design David H. Eberly 8.3 Special Surfaces 2001/11/13.
Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Angel: Interactive.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Curves and Surfaces Chapter 10. CS 480/680 2Chapter 9 -- Hierarchical Models Introduction: Introduction: Until now we have worked with flat entities such.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
Interactive Graphics Lecture 10: Slide 1 Interactive Computer Graphics Lecture 10 Introduction to Surface Construction.
Rendering Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Angel:
Splines I – Curves and Properties based on: Michael Gleicher Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 10.
Designing Parametric Cubic Curves 1. 2 Objectives Introduce types of curves ­Interpolating ­Hermite ­Bezier ­B-spline Analyze their performance.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 450: Computer Graphics PARAMETRIC SPLINES AND SURFACES
Introduction to Parametric Curve and Surface Modeling.
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
Computer Graphics Lecture 37
University of New Mexico
University of New Mexico
Rendering Curves and Surfaces
Designing Parametric Cubic Curves
© University of Wisconsin, CS559 Spring 2004
Curves and Surfaces Ed Angel
Implicit Functions Some surfaces can be represented as the vanishing points of functions (defined over 3D space) Places where a function f(x,y,z)=0 Some.
Computer Graphics Lecture 36 CURVES II Taqdees A. Siddiqi
UNIT-5 Curves and Surfaces.
Introduction to Computer Graphics with WebGL
Three-Dimensional Object Representation
Polynomial Functions.
Introduction to Parametric Curve and Surface Modeling
Curves and Surfaces (I)
Designing Parametric Cubic Curves
Presentation transcript:

11/6/ :55 Graphics II Introduction to Parametric Curves and Surfaces Session 2

21/6/ :55 Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function Calls or Protocol Data

31/6/ :55

4 Gouraud Shading: Use Mean Normal at Each Vertex

51/6/ :55 The Utah Teapot: 32 Bezier Patches

61/6/ :55 Explict Representation of Curve: Two Dimensions Dependent Variable Independent Variable General case: Neither variable is a single-valued function of the other. Example: a circle centered at the origin

71/6/ :55 Explicit Representation of a Curve: Three Dimensions c y x z Plane x = c

81/6/ :55 Implicit Representation Two Dimensions: Should be thought of as a “membership” or “testing” function. Divides space into points on the curve and not on the curve. Circle: Describes a curve Line :

91/6/ :55 Implicit Representation: Three Dimensions Defines a surface in three dimensions. Example: a sphere of radius r at origin There is no easy way to represent a curve implicitly in three dimensions. Algebraic surfaces are those in which f is polynomial in x, y, z. Quadric surfaces are algebraic surfaces where the polynomial is of degree at most 2.

101/6/ :55 Problems with Implicit Representation 0 Difficult to evaluate for rendering because identifying points on the curve requires explicit solution for (x,y). 0 Limited variety of curves that can be obtained.

111/6/ :55 Parametric Representation of Curves and Surfaces Express each spatial variable for points on the curve as a function of a non-spatial independent variable. Parametric surfaces require two parameters: Where u is defined over some closed range, e.g. [0, 1]

121/6/ :55 What does a Parametric Representation Really Mean?

131/6/ :55 Advantages of Parametric Representation 0 Solves problem of choice of independent variable 0 Easy computation of derivatives 0 Provides mechanism for “tracing” a curve or surface 0 Facilitates joining of multiple curves, surfaces 0 Generates a rich variety of curves, surfaces 0 Ease of rendering

141/6/ :55 Parametric Polynomial Curves Defines points on a parametric curve. A polynomial parametric curve of degree n is defined:

151/6/ :55 Parametric Polynomial Surfaces u=1 v=1 v=0 u=0 y z x

161/6/ :55 Continuity Considerations C 0 continuity: = C 1 continuity: G 1 continuity:

171/6/ :55 What degree do we want? High order polynomials provide more control over shape of curve. Degree n provides 3(n+1) degrees of freedom, in the choice of c k. The higher the order of a polynomial, the less “smooth” it is. A polynomial of degre n can change directions n-1 times. Consider polynomial of order 5.

181/6/ :55 Parametric Cubic Polynomial Curves Matrix Notation

191/6/ :55 Parametric Curves: How Do I Control the Shape?

201/6/ :55 Interpolation: Four control points on curve This constraint can be expressed by the equations:

211/6/ :55 Computing the coefficients Expressing the constraints in matrix form: Where:

221/6/ :55 Computing the coefficients

231/6/ :55 Blending Functions Substituting fromgives: which can be written as: whereis a column vector of blending functions.

241/6/ :55 Blending Functions

251/6/ :55 Expressing a point on the curve in terms of the blending polynomials Control

261/6/ :55 What the blending functions look like:

271/6/ :55 0 Contains scalars and polynomials (vectors) 0 Addition, zero polynomial defined 0 Can express a basis, e.g. 0 Representation of a polynomial in terms of this basis can be expressed as a column vector of scalar coefficients. Let’s look at polynomials as a vector space.

281/6/ :55 Conversion of representation from one basis to another Representation: Basis:

291/6/ :55 Conversion of representation from one basis to another Representation : Basis : The central issue in parametric curves (and surfaces) is the selection of an appropriate basis for the control point representation.

301/6/ :55 How do we extend this to 3 dimensions? Interpolating Patch u = constant v = constant

311/6/ :55 Bicubic interpolating surface patch 16 coefficients allow the interpolation of 16 points.

321/6/ :55 Solving for Coefficients Substituting the values at 16 points: Gives the equation:Where as before

331/6/ :55 Solving for Coefficients Note: separability of blending polynomial in u, v.

341/6/ :55 Lines of constant u and v are Interpolating curves u = constant v = constant