1 / 34

Graphics II 91.547 Introduction to Parametric Curves and Surfaces

Graphics II 91.547 Introduction to Parametric Curves and Surfaces. Session 2. Computer Graphics Conceptual Model. API. Output Devices. Application Program. Application Model. Graphics System. Input Devices. Function Calls or Protocol. Data.

iden
Download Presentation

Graphics II 91.547 Introduction to Parametric Curves and Surfaces

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphics II 91.547Introduction to Parametric Curvesand Surfaces Session 2

  2. Computer GraphicsConceptual Model API Output Devices Application Program Application Model Graphics System Input Devices Function Calls or Protocol Data

  3. Gouraud Shading:Use Mean Normal at Each Vertex

  4. The Utah Teapot: 32 Bezier Patches

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

  6. Explicit Representation of a Curve:Three Dimensions y x c z Plane x = c

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

  8. 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.

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

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

  11. What does a Parametric RepresentationReally Mean?

  12. Advantages of Parametric Representation • Solves problem of choice of independent variable • Easy computation of derivatives • Provides mechanism for “tracing” a curve or surface • Facilitates joining of multiple curves, surfaces • Generates a rich variety of curves, surfaces • Ease of rendering

  13. Parametric Polynomial Curves Defines points on a parametric curve. A polynomial parametric curve of degree n is defined:

  14. Parametric Polynomial Surfaces y u=1 v=0 v=1 x u=0 z

  15. Continuity Considerations C0continuity: = C1continuity: G1continuity:

  16. 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 ck. 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.

  17. Parametric Cubic Polynomial CurvesMatrix Notation

  18. Parametric Curves:How Do I Control the Shape?

  19. Interpolation:Four control points on curve This constraint can be expressed by the equations:

  20. Computing the coefficients Expressing the constraints in matrix form: Where:

  21. Computing the coefficients

  22. Blending Functions Substituting from gives: which can be written as: where is a column vector of blending functions.

  23. Blending Functions

  24. Expressing a point on the curve in terms of theblending polynomials Control points @

  25. What the blending functions look like:

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

  27. Representation: Basis: Conversion of representation fromone basis to another

  28. Representation: Basis: Conversion of representation fromone basis to another The central issue in parametric curves (and surfaces) is the selection of an appropriate basis for the control point representation.

  29. u = constant v = constant How do we extend this to 3 dimensions? Interpolating Patch

  30. Bicubic interpolating surface patch 16 coefficients allow the interpolation of 16 points.

  31. Solving for Coefficients Substituting the values at 16 points: Gives the equation: Where asbefore

  32. Solving for Coefficients Note: separability of blending polynomial in u, v.

  33. u = constant v = constant Lines of constant u and v areInterpolating curves

More Related