CS 184: COMPUTER GRAPHICS


PREVIOUS < - - - - > CS 184 HOME < - - - - > CURRENT < - - - - > NEXT

Lecture #15 -- Mon 3/16/2009.

A)  Approximate a quarter circle as best possible
with a single cubic Bezier segment.

B)  How can you place a minimal number of control points
for a cubic B-spline curve, so that you obtain
a rollercoaster track with a knot in it ?



quarter circle

roller coaster

Problem A)

IDEA:  Try to properly place the mid-point of the curve; exploit symmetry.

Problem B)  

IDEA:  Try to solve this problem in the top-down view of the track; adjust heights later. -> Resulting control polygon.


The next assignment involves modeling a rollercoaster track and moving a car (and a camera) along it.  Thus we need to learn about spave curves!

Differential Geometry of 3D Space Curves

Analysis of Curves (as compared to "Design" or "Data Fitting")

Construction of the Frenet Frame (Ref. frame for intrinsic properties)

Serret - Frenet Relations

Sweeps along Polylines (and piecewise linearly approximated curves)

Examples of mitered joints: 1 2 3 4
Default: Cross-section remains perpendicular to tangent vector.
The "natural" orientation of the cross section based on the Frenet frame.
Azimuth determines alternate orientations around the tangent vector.
Construction of "ribs" in angle-divider plane at all segment junctions, -- stretched by 1/cos(half-angle) in direction of normal vector
Minimizing torsion by projectin forward from one rib plane to the next.
Adding arbitrary additional azimuht values at any control point.
Adding additional (continuous) twist by adding a linear progression of azimuth at all rib positions.
Finding minimal amount of twist that closes a sweep loop.

[More on that in CS284 -- Next offering: Fall 2009. -- Undergraduate students who do well in CS 184 are welcome]


Reading Assignments:

Skim:   Shirley, 2nd Ed:  Ch 15

Study: ( i.e., try to understand fully, so that you can answer questions on an exam): 
Shirley, 2nd Ed: 
Ch 15.6-15.7


Programming Assignment 6: due (electronically submitted) before Tuesday 3/17, 11pm <== ASSIGNMENT CAN BE DONE IN PAIRS !

Programming Assignment 7: due (electronically submitted) before Wednesday 4/1, 11pm <== ASSIGNMENT CAN BE DONE IN PAIRS !

ADVICE:  Start the next assignment as soon as possible, so that you can ask relevant questions and obtain good feedback and help BEFORE Spring Break!


PREVIOUS < - - - - > CS 184 HOME < - - - - > CURRENT < - - - - > NEXT