Home Lectures and Readings Assignments and Exams Showcase

CS 148 fulfills the General Education Requirements (GER) as a Ways of Thinking/Ways of Doing (WAYS) course in the Creative Expression (WAY-CE) area.
To satisfy this category, students need to enroll under the Letter Grade grading option; the WAY-CE requirement is not met by the Credit/No Credit option.

Class "Engagement"

Admittedly, it is entirely possible to learn any highly technical subject matter at home, without attending class or even going to college. However, as a general education WAYS class, CS148 aims to increase those additional things learned (even often about the technology itself) through social interactions. In fact, one should be interacting quite a bit with others when trying to create compelling imagery as there is an artistic component - this will be salient for the class final project/image.

As such, we aim to increase one's "engagement" in this course by allowing the use of a partner, having in-person grading sessions, and by promoting class attendance and discussion. In particular, there will be a number of in class exercises that are meant to encourage following along in lecture, thinking about the material in real time, and discussions with others both inside and outside of class. To encourage these interactions, these "engagement" exercises will consist of 18% of the final grade.

For those taking this class who already have a broad and deep understanding of graphics, and who feel that the class "engagement" is neither helpful nor necessary to their graphics experience, we will allow them to opt out of this and instead take a quite difficult closed book in class exam meant to illustrate their prior and deep knowledge on the subject.

Course Announcements

09/26/2017Welcome to the CS 148 Fall 2017 Website!
09/26/2017Assignment 1 has been posted.
10/03/2017Assignment 2 has been posted.
10/10/2017Assignment 3 has been posted.
10/17/2017Assignment 4 has been posted.
10/24/2017Assignment 5 has been posted.
10/31/2017Assignment 6 has been posted.
11/07/2017Assignment 7 has been posted.
11/08/2017Final project handout has been posted.
11/14/2017Assignment 8 has been posted.


This is the introductory prerequisite course in the computer graphics sequence which introduces students to the technical concepts behind creating synthetic computer generated images. The beginning of the course focuses on using OpenGL to create visual imagery, as well as an understanding of the underlying mathematical concepts including triangles, normals, interpolation, texture mapping, bump mapping, etc. Then we move on to a more fundamental understanding of light and color, as well as how it impacts computer displays and printers. From this we discuss more thoroughly how light interacts with the environment, and we construct engineering models such as the BRDF and discuss various simplifications into more basic lighting and shading models. Finally, we discuss ray tracing technology for creating virtual images, while drawing parallels between ray tracers and real world cameras in order to illustrate various concepts. Anti-aliasing and acceleration structures are also discussed. The final class project consists of building out a ray tracer to create a visually compelling image. Starter codes and code bits will be provided here and there to aid in development, but this class focuses on what you can do with the code as opposed to what the code itself looks like. Therefore grading is weighted towards in person "demos" of the code in action - creativity and the production of impressive visual imagery are highly encouraged. Prerequisites: CS 107, MATH 51.

This is the first course in the computer graphics sequence at Stanford. The second course is CS248 and requires this course, CS 148, as a prerequisite. Topics include: Scanline Rendering; OpenGl pipeline; Triangles; Rasterization; Transformations; Shading; Triangle Meshes; Subdivision; Marching Cubes; Textures; Light; Color; Cameras; Displays; Tone Mapping; BRDF; Lighting Equation; Global Illumination; Radiosity; Ray Tracing; Acceleration Structures; Sampling; Antialiasing; Reflection; Transmission; Depth of Field; Motion Blur; Monte Carlo; Bidirectional Ray Tracing; Light Maps.


Meeting Times


CA Office Hours (subject to changes)


Piazza will be used for Q&A in CS 148. Please enroll yourself through Piazza.

For all other inquiries, you can email the course staff at cs148-aut1718-staff [at] lists [dot] stanford [dot] edu.