Groups for final project
Midterm Exam from office hours or in class on Thursday
ModelingWireframe Model
Back-Face Culling
Back-Face Elimination
Towards Illumination
Modeling incorporates:
Solids
For processing, solids must have representations describing
the topography, geometry and characteristics completely:
Parametric representations... again?Any point on surface: P(u,v)
Three components (X,Y,Z)Define "outside" and "inside" regions: f(x,y,z)
implicit fn f 'inside-outside fn' relationship>
point(x,y,z) is:
if f(x,y,z)<0 inside
if f(x,y,z)=0 on surface
if f(x,y,z)>0 outside
Practicality?position vector, c noncollinear directions, a and b
normal computationHow do we actually do this?
Any point on the plane can be represented by a vector sum:
p(u,v) = c +ua + vb
Equation in terms of c, a, and b components with the
unit vectors: p(u,v) =
Ranging u and v
Parametric Forms exist for a large class of curved surfaces:
Storage
vertex listRendering
edge list
simple line drawing of edges.
Applicable Example: Basic Barn

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
||||
|
|
|
|
||||
|
|
|
|
||||
|
|
|
|
||||
|
|
|
|
||||
|
|
|
|
what algorithms do you use to populate the data structure?use an algorithm to populate the data structure project the (x,y,z) coordinates to 2-D coordinates connect the vertices as defined by edge list
Platonic solid (regular polyhedron)
Example: Modeling a Tetrahedron

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plane: p(u,v) = c + au +bv
u- and v- contours
For any parametric equation, we can hold either u- or v- constant. Varying the other results in a countour.We can draw quadrilaterals between the vertices of intersection.



Two ways for resolving this problem:


openGL: must enable depth buffering
glutInitDisplayMode(GLUT_DEPTH | ...)
glEnable(GL_DEPTH_TEST);
What if we don't do this?
Plane
dot(n,p) = DFlat Surfaces
Example: p(u,v) = c + au + bv
Take partial derivatives: (dr/dm)=a; (dr/dn)=b;
Obtain normal vector by cross product