Notes for Fall 2020 Students:

In fall 2020, due to learning from home (LFH) issues, there will be no class engagement assignments/grading this year.
The course grade will be 50% project and 50% HW. No exams!

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"

Course Announcements

09/16/2019Welcome to the CS 148 Fall 2019 Website!
09/23/2019Assignment 1 has been posted.
10/01/2019Assignments 2 and 3 have been posted -- please see Piazza for tips and notes.
10/15/2019Final project handout has been posted.
10/15/2019Assignment 4 has been posted.
10/22/2019Assignment 5 has been posted.
10/29/2019Assignment 6 has been posted.
10/29/2019Reference Image assignment details have been posted.
11/04/2019Assignment 7 has been posted.
11/12/2019Assignment 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.