CSCI 440 Computer Graphics

Slides:



Advertisements
Similar presentations
Curves Jim Van Verth Essential Math for Games Animation Problem: want to replay stored set of transformations  Generated by.
Advertisements

Lecture Notes #11 Curves and Surfaces II
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.
Lecture 10 Curves and Surfaces I
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 13: NURBs, Spline Surfaces Ravi Ramamoorthi Some material.
© University of Wisconsin, CS559 Spring 2004
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Splines II – Interpolating Curves
1Notes  Assignment 0 is due today!  To get better feel for splines, play with formulas in MATLAB!
Surfaces Chiew-Lan Tai. Surfaces 2 Reading Required Hills Section Hearn & Baker, sections 8.11, 8.13 Recommended Sections 2.1.4, , 3D Computer.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 12: Spline Curves (review) Ravi Ramamoorthi Most material.
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
ENDS 375 Foundations of Visualization Geometric Representation 10/5/04.
Modelling: Curves Week 11, Wed Mar 23
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
COEN Computer Graphics I
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
09/16/02 Dinesh Manocha, COMP258 Surfaces Locally a 2D manifold: i.e. approximating a plane in the ngbd. of each point. A 2-parameter family of points.
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
B.Sc. Multimedia Computing3D Modelling and Animation Nurbs Modelling.
Splines III – Bézier Curves
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.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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.
Introduction to Computer Graphics with WebGL
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric surfaces.
CS 376 Introduction to Computer Graphics 04 / 20 / 2007 Instructor: Michael Eckmann.
Chapter VI Parametric Curves and Surfaces
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.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Curves and Surfaces 2.0 CSE3AGR - Paul Taylor 2009.
Computer Graphics Representing Curves and Surfaces.
Geometric Modelling 2 INFO410 & INFO350 S Jack Pinches
Computer Programming (TKK-2144) 13/14 Semester 1 Instructor: Rama Oktavian Office Hr.: M.13-15, W Th , F
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
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.
In the name of God Computer Graphics Bastanfard. Curve Function(2) Other method is approximate it using a poly-line. Just locate a set of points along.
Rendering Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Angel:
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
Rational Curve. Rational curve Parametric representations using polynomials are simply not powerful enough, because many curves (e.g., circles, ellipses.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
(c) 2002 University of Wisconsin
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
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:
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Lecture 13 of 42 Wednesday, 15 February 2006 William.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Introduction to Parametric Curve and Surface Modeling.
© University of Wisconsin, CS559 Spring 2004
NON LINEAR FUNCTION Quadratic Function.
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
Representation of Curves & Surfaces
Rendering Curves and Surfaces
© University of Wisconsin, CS559 Spring 2004
Chapter XVII Parametric Curves and Surfaces
Class Notes 11.2 The Quadratic Formula.
Introduction to Parametric Curve and Surface Modeling
Polynomial and Rational Functions
Presentation transcript:

CSCI 440 Computer Graphics Curves CSCI 440 Computer Graphics material blatantly stolen from Chapter 11 of Angel's Interactive Computer Graphics

Explicit Representation Some curves do have an exact formula. Example: circle 𝑦= 𝑟2 −𝑥2 but that only gives positive values, so we also need 𝑦 = − 𝑟2 −𝑥2

Explicit Representation Some lines do have an exact formula. Example: y = mx + b But, what's the formula for this line:

Parametric Polynomial Curves We can form curves using control points to shape the curve. The higher the order of the polynomial, the more control we have. But the higher the order, the more time it takes to compute the points. Cubic is the sweet spot. uses 4 control points

Parametric Polynomial Curves There are several methods that use control points to create curves. Hermite Curves Bezier Curves we just need to rotate and translate points (matrix math) To build a more complex curve, break the curve into groups of four control points. Angel figures 11.9 and 11.10

Example Assume we want to model an airplane. A cross section near the cockpit would look like: We would probably break this into four curves and settle for this: Angel figures 11.5, 11.6, and 11.7

Problem Sometimes when we break a curve into sections, we get: Solutions include Cubic B-Splines Nonuniform rational B-Splines (nurbs) uses weights to change the importance of particular control points Angel figure 11.8

Bèzier Curves B(u), as u goes from 0 to 1 = (1 - u)3P0 + 3(1 - u)2uP1 + 3(1 - u)u2P2 + u3P3 Angel figures 11.19 and 11.20

Bèzier Curves Two control points (linear) Three control points (quadratic) animations from wikipedia.com

Bèzier Curves Four Control Points (cubic polynomial) Fifth Order animations from wikipedia.com

Recursive Subdivision Angel figures 11.34 and 11.35

Recursive Subdivision Example 1 Given the Control Points [0,0] [5,5] [15,5] [20,0] First subdivision yields: [0,0] [2,2] [10,5] [17,2] [20,0] Second subdivision yields: [0,0] [1,1] [6,3] [13,3] [18,1] [20,0] This operation uses only one addition and one bit shift.

Recursive Subdivision Example 2 Given the Control Points [0,0] [4,10] [12,15] [20,15] First subdivision yields: [0,0] [2,5] [8,12] [16,15] [20,15] Second subdivision yields: [0,0] [1,2] [5,8] [12,13] [18,15] [20,15]

Recursive Subdivision Angel figures 11.37, 38 and 39

Recursive Subdivision Angel figures 46A - 46D

Building Meshes from Data Points Delaunay Triangulation Angel figures 11.47, 11.49, 11.50