lecture 21: bicubic surfaces

15
Lecture 21: Bicubic Surfaces December 8, 2016 12/8/16 CSU CS410 Fall 2016, © Ross Beveridge & Bruce Draper 1

Upload: others

Post on 02-Jan-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 21: Bicubic Surfaces

Lecture 21:Bicubic Surfaces

December 8, 2016

12/8/16 CSU CS410 Fall 2016, © Ross Beveridge & Bruce Draper 1

Page 2: Lecture 21: Bicubic Surfaces

Parametric Bicubic Surfaces• The goal is to go from curves in space to

curved surfaces in space.

• To do this, we will parameterize a surface in terms of two free parameters, s & t

• We will extend the Bezier curve in detail.

• Other surfaces are similar in concept.12/8/16 © Ross Beveridge & Bruce Draper 2

Page 3: Lecture 21: Bicubic Surfaces

VisualizingBicubicSurfaces

12/8/16 © Ross Beveridge & Bruce Draper 3

1) Imagine a Bezier curve Gb1(t) in space.

2) Imagine three more Bezier curves, Gb2(t)Gb3(t) and Gb4(t)

3) Let all four curves be parameterized by a single t

4) For t=0, we have four points: Gb1(0), Gb2(0), Gb3(0)and Gb4(0). Use these as the control points foranother Bezier curve.

5) Repeat step #4 for all values of t

Page 4: Lecture 21: Bicubic Surfaces

Bicubic Surfaces

12/8/16 © Ross Beveridge & Bruce Draper 4

Gb1(t)

Gb2(t)

Gb3(t)

Gb4(t)Q(s,t)

Q(s,t)

Q(s,t)

Q(s,t)

Mapping from (s,t) to (x,y,z)

Page 5: Lecture 21: Bicubic Surfaces

BasicMath– Version1

12/8/16 © Ross Beveridge & Bruce Draper 5

Page 6: Lecture 21: Bicubic Surfaces

… and the Geometry

12/8/16 © Ross Beveridge & Bruce Draper Slide 6

Specify four 4x3 geometry matrices, one for per curve.

Here is the first Bezier curve of the four.

Page 7: Lecture 21: Bicubic Surfaces

Thesurface…

12/8/16 © Ross Beveridge & Bruce Draper 7

Recall we are building three functions of two variables.

Look just at the first – the x coordinate - function …

Page 8: Lecture 21: Bicubic Surfaces

BasicMath– Version2

12/8/16 © Ross Beveridge & Bruce Draper 8

Specify three 4x4 geometry matrices, one per dimension.

Page 9: Lecture 21: Bicubic Surfaces

Example Geometry

12/8/16 © Ross Beveridge & Bruce Draper Slide 9

Page 10: Lecture 21: Bicubic Surfaces

…hereitisinalgebra

12/8/16 © Ross Beveridge & Bruce Draper 10

Note the very simple form of the x and y components.

Can you relate the x and y forms back to the geometry?

What is the height (z) of the surface at Q(0,0)?

Page 11: Lecture 21: Bicubic Surfaces

12/8/16 © Ross Beveridge & Bruce Draper Slide 11

… and here it is in 3D

Page 12: Lecture 21: Bicubic Surfaces

AnotherExample

12/8/16 © Ross Beveridge & Bruce Draper 12

Page 13: Lecture 21: Bicubic Surfaces

12/8/16 © Ross Beveridge & Bruce Draper Slide 13

Andanotherexample

Page 14: Lecture 21: Bicubic Surfaces

A Brief Comment on NURBS• Naming: Non-Uniform Rational B-Spline

– Non-Uniform -> knot vector.– Rational –> defined with x, y, z, w.

• Points are rational, i.e. px = x / w– B-Spline -> uses B-Spline geometry

• NURBS Surface– Compose curves to generate surface

• Recall Bezier Curve to Bezier Surface approach• The inclusion of w means

– Perspective projection does not distort.

12/8/16 © Ross Beveridge & Bruce Draper 14

Page 15: Lecture 21: Bicubic Surfaces

SimpleNURBSIllustration

12/8/16 © Ross Beveridge & Bruce Draper 15

This image from Wikimedia and part of the Wikipedia description of NURBS.