Korea University Jung Lee, Computer Graphics Laboratory 3D Game Engine Design David H. Eberly 8.3 Special Surfaces 2001/11/13.

Slides:



Advertisements
Similar presentations
Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
Advertisements

© University of Wisconsin, CS559 Spring 2004
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 7: Quadric Error Metrics Ravi Ramamoorthi
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
ICS 415 Computer Graphics Bézier Splines (Chapter 8)
Overview June 9- B-Spline Curves June 16- NURBS Curves June 30- B-Spline Surfaces.
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
Jehee Lee Seoul National University
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
Surfaces Chiew-Lan Tai. Surfaces 2 Reading Required Hills Section Hearn & Baker, sections 8.11, 8.13 Recommended Sections 2.1.4, , 3D Computer.
Cornell CS465 Fall 2004 Lecture 16© 2004 Steve Marschner 1 Curved surfaces CS 465 Lecture 16.
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
1 Dr. Scott Schaefer The Bernstein Basis and Bezier Curves.
09/25/02 Dinesh Manocha, COMP258 Subdividing a Bezier Patch Subdivide separately along u and v parameters To subdivide along the u parameter, subdivide.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
1 Dr. Scott Schaefer Tensor-Product Surfaces. 2/64 Smooth Surfaces Lagrange Surfaces  Interpolating sets of curves Bezier Surfaces B-spline Surfaces.
Cubic Bezier and B-Spline Curves
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
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.
Parts of Mortenson Chapter 6-9,
Splines III – Bézier Curves
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
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 16.
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to Computer Graphics with WebGL
Curves.
1 Dr. Scott Schaefer Coons Patches and Gregory Patches.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric surfaces.
Chapter VI Parametric Curves and Surfaces
Course 13 Curves and Surfaces. Course 13 Curves and Surface Surface Representation Representation Interpolation Approximation Surface Segmentation.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
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.
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
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.
11/6/ :55 Graphics II Introduction to Parametric Curves and Surfaces Session 2.
Review CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2005.
Chapter 6 Eigenvalues. Example In a certain town, 30 percent of the married women get divorced each year and 20 percent of the single women get married.
11/26/02(C) University of Wisconsin Last Time BSplines.
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
(c) 2002 University of Wisconsin
CS 450: Computer Graphics PARAMETRIC SPLINES AND SURFACES
11.6 Surfaces in Space.
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
Introduction to Curves
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 12: Curves 1
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.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Introduction to Parametric Curve and Surface Modeling.
MATHEMATICS B.A./B.Sc. (GENERAL) FIRST YEAR EXAMINATIONS,2012.
Lecture 5 Basic geometric objects
Chapter 12 Math 181.
CSE 167 [Win 17], Lecture 9: Curves 1 Ravi Ramamoorthi
Advanced Computer Graphics: Parametric Curves and Surfaces
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
Chapter XVII Parametric Curves and Surfaces
The Bernstein Basis and Bezier Curves
Coons Patches and Gregory Patches
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Korea University Jung Lee, Computer Graphics Laboratory 3D Game Engine Design David H. Eberly 8.3 Special Surfaces 2001/11/13

Jung Lee, Computer Graphics Laboratory Korea University 2 Bezier Rectangle Patches  Popular with game programmers Mathematical simplicity Ease of use  Equation : ( 0  i 0  n 0, 0  i 1  n 1 ) : 3D control points The first-order partial derivatives of the patch

Jung Lee, Computer Graphics Laboratory Korea University 3 Bezier Rectangle Patches Evaluation  Trade-off of speed vs. accuracy  Bernstein polynomial computation n 0 +1 evaluations of B n0,i0 (s) n 1 +1 evaluations of B n1,i1 (t) n 0 n 1 multiplications for pairs of the evaluated polynomials  de Casteljau algorithm Repeatedly computes convex combinations Generally stable Use more floating-point operations

Jung Lee, Computer Graphics Laboratory Korea University 4 Comparison For Bilinear Interpolation  Case where n 0 =1 and n 1 =1  Bernstein form 2 subtractions, 9 additions, and 16 multiplications  de Casteljau form 2 subtractions, 9 additions, and 18 multiplications

Jung Lee, Computer Graphics Laboratory Korea University 5 Degree Elevation  Degree-elevated to (n 0 +1, n 1 )  Degree-elevated to (n 0, n 1 +1)  Degree-elevated to (n 0 +1, n 1 +1) Degree-elevated control points

Jung Lee, Computer Graphics Laboratory Korea University 6 Degree Reduction  Let the degree-reduced surface m 0  n 0, m 1  n 1 Constraint  The endpoints of the two curves are same  Two choices for the extension to rectangle patches  The four corner points match between the two patches Least-squares fit to construct the remaining control points Process  Degree-reduce the four boundary curves first  Compute the remaining interior control points  Least-squares fit

Jung Lee, Computer Graphics Laboratory Korea University 7 Bezier Triangle Patches  Slightly more complicated than Bezier rectangle patches  Useful for creating models of arbitrary complexity  Equation : (i 0, i 1, i 2  0, i 0 + i 1 + i 2 = n)  Evaluation Computing the coefficients  To minimize arithmetic operations by saving intermediate products and sums

Jung Lee, Computer Graphics Laboratory Korea University 8 Degree Elevation  Multiply the original patch by Degree-elevated patch  Degree-elevated control points

Jung Lee, Computer Graphics Laboratory Korea University 9 Degree Reduction  Let the degree-reduced surface m  n Constraint  The endpoints of the two curves are same  Two choices for the extension to triangle patches  The three corner points match between the two patches Least-squares fit to construct the remaining control points Process  The boundary curves are reduced first  Compute the remaining interior control points  Least-squares fit

Jung Lee, Computer Graphics Laboratory Korea University 10 Bezier Cylinder Surfaces (1 / 2)  Bezier rectangle/triangle patches More curvature variation than is needed  Cylinder/developable surfaces Curved in 1D and flat Two choice of generation  Taking a curve and linearly translating  Sweeping operation  Taking a line segment and moving it  One endpoint is constrained to the originally specified curve Evaluation, degree elevation/reduction can be applied to  Initial curve for cylinder surfaces  Boundary curves for generalized cylinder surfaces

Jung Lee, Computer Graphics Laboratory Korea University 11 Bezier Cylinder Surfaces (2 / 2)  Cylinder Surface : Bezier curve : Linear translation : The first-order partial derivatives :  Generalized cylinder surface Specifying two Bezier curves  With the same number of control points Blending between the two curves Equation :  Control points : for 0  i  n The first-order partial derivatives

Jung Lee, Computer Graphics Laboratory Korea University 12 Nonparametric B-Spline Rectangle Patches  How to interpolate a rectangle lattice of scalars for 0  i 0  n 0, 0  i 1  n 1 Componentwise interpolation  B-spline polynomial of degree d for 0  k 0  d for 0  k 1  d : intermediate tensor  For applications The intermediate tensor can be cached

Jung Lee, Computer Graphics Laboratory Korea University 13 Quadric Surfaces  Discussion of the general quadratic equation A : 3  3 nonzero symmetric matrix : 3  1 vector c : scalar : 3  1 vector that represents the variable quantities  A = R T DR D : diagonal matrix  Diagonal entities are the eigenvalues of A R : rotational matrix  Rows are corresponding eigenvectors

Jung Lee, Computer Graphics Laboratory Korea University 14 Eigendecomposition  Rewritten quadratic equation,, Characterize the surface type based on the number of nonzero eigenvalues  Three : elliptic cone, ellipsoid, hyperboloid  Two : line, union of two planes, elliptic cylinder, hyperbolic cylinder, hyperbolic paraboloid  One : parabolic cylinder Determine that the solution is degenerate from  Point, line, plane

Jung Lee, Computer Graphics Laboratory Korea University 15 Tube Surfaces  Swept surface Sweeping a region of space by a planar object along a specified central curve  Most common planar object : circle  Radius varies with time : r(t)  Resulting surface is called a tube surface  Equation : : columns of an orientation matrix R(t)  pp.286 t : curve parameter   [0, 2  )  Surface of revolution  The central curve is a straight line