CSE 287: Foundations of Computer Graphics and Games

Course Description

This course is an introduction to techniques used to create images on the computer. The course covers the algorithms and mathematical theory behind three dimensional image generation with an emphasis on 3D geometry, 3D transformations, and the graphics pipeline. Programming required.

Prerequisites

CSE 271 and MTH 151

Learning Outcomes:

1. Utilize vector arithmetic to solve geometry problems related to computer graphics.

1.1. Express a vector as the sum of a set of linearly independent basis vectors

1.2. Use vector subtraction to find a vector that points from one point to another or find the distance between two points.

1.3. Manipulate vectors to produce vectors that are normalized to unit length, have a specified length, or point in a direction that is opposite the original vector.

1.4. Use the dot product to compare the directions of vectors or find the component of one vector that is parallel or perpendicular to another.

1.5. Use the cross product to find a vector that is normal to the “front” side of a surface, calculate the area of a parallelogram or triangle, and generate an orthonormal basis.

2. Describe and implement basic image order algorithms such as ray tracing.

2.1. Generate a parametric representation a line or ray given two points.

2.2. Generate viewing rays associated with pixel positions for both perspective and orthographic projections.

2.3. Represent surfaces implicitly using quadratic equations.

2.4. Solve for intersections between rays and surfaces using the quadratic formula.

2.5. Calculate reflection vectors and use them to model inter-object reflections.

2.6. Generate shadow feelers and use them to simulate shadows associated with both positional and directional light sources.

3. Explain and implement shading models such as Lambertian, Gouraud, and Blinn-Phong.

3.1. Correctly calculate the ambient, diffuse, and specular reflection given the properties of a light source and the properties of a surface.

3.2. Simulate light attenuation based on constant, linear, and quadratic attenuation factors and the distance to a light source.

3.3. Correctly combine the diffuse and specular reflections for multiple light sources, to calculate the local illumination.

3.4. Specify and utilize material properties and textures to increase surface detail.

3.5. Use the dot product to determine whether or not a fragment is within the “beam” of a spotlight.

3.6. Describe advantages, disadvantages, and differences between Gouraud and Blinn-Phong Shading.

4. Specify and utilize linear transformations to express relationships between coordinate frames, transform vertex positions and normals, and map coordinates and rotations from one coordinate frame to another.

4.1. Represent positions and directions using homogenous coordinates.

4.2. Create a homogenous transformation matrix that will produce a specified translation, rotation, or scale.

4.3. Use a homogenous transformation matrix to generate transformed vertex coordinates.

4.4. Correctly order a set of transformations to create specified composite transformations containing one or more individual translation, rotation, and scale transformations.

5. Describe the purposes of graphics pipeline transformations and operations and correctly specify each to perform object order rendering.

5.1. List and correctly order the transformations that must be carried out to produce object coordinates, world coordinates, eye coordinates, clip coordinates, normalized device coordinates, and window coordinates.

5.2. Correctly specify and order matrices to create a composite modeling or viewing transformations.

5.3. Apply a projection transformation and perspective division to transform a vertex to clip coordinates.

5.4. Describe and implement an algorithm that will clip a triangle against a normalized view volume.

5.5. Determine whether or not the triangle faces the viewpoint given three vertices that describe a triangle and a vector that describes the viewing direction.

5.6. Write a code fragment that correctly implements the depth test and describe how it is used to perform hidden surface elimination.

5.7. Use the areas of triangles to perform Barycentric interpolation of vertex attributes for a point in the interior of the triangle.