UCSD CSE 167 Computer Graphics (Fall 2026)

Cool final projects from Fall 2025 (click for Shadertoy)


Odyssey
Cui Hui

untitled
Yuehua Xie

frog on a lilypad
Alain Zhang

CardCaptor Sakura magic circle
Emily Liu

Space Invasion
Vedant Patel

Gargantua Black Hole
Ludwig Von Schoenfeldt

Course Description

Computer graphics is a field about processing "visual data", including images, videos, 2D and 3D shapes, light and reflection, motion, physical properties, and many more. Throughout the course, we will learn about:

You can take a look at previous CSE 167 webpages (my previous version) to have a better sense of what the course is about.

This course is only the tip of an iceberg of a fascinating field. If you are interested in computer graphics, you should look the more advanced materials in CSE 168 for rendering (either my version or Ravi's version), CSE 169 for animation, CSE 191 B: for virtual reality and CSE 165 for user interaction.

For graduate students, CSE 272, CSE 273, CSE 274: Sampling and Reconstruction of Visual Appearance, CSE 274: Discrete Differential Geometry, CSE 275: Deep Learning for 3D Data, and CSE 291: Physics Simulation are all relevant and super cool courses. UCSD has one of the largest faculty on graphics!

Prerequisites

You should be comfortable programming and with basic linear algebra (vectors, matrices, dot products, and matrix multiplication).

Logistics

Instructor: Tzu-Mao Li
TA: Zilu Li (zil124@ucsd.edu), Raghav Jain (r6jain@ucsd.edu)
Tutors: Ashish V Bamba (abamba@ucsd.edu), Philip Pincencia (ppincencia@ucsd.edu)
Lectures: Monday/Wednesday/Friday 14:00-14:50 Pacific time. Location: PCYNH 109.
Discussion: Friday 15:00-15:50 Pacific time. Location: PCYNH 106.
New this year: we will use the discussion to do "code interview" of homeworks. Please ensure your availability.
Instructor office hour: Wed 3pm-4pm. Location: CSE 4116
TAs/Tutors office hours: Tue 9:30am-10:30am CSE B260A Philip. Wed 8:30am-9:30am B250A Raghav. Thu 3pm-4pm CSE 4148 Zilu. Fri 1pm-2pm B250A Ashish.
We will do most of the online discussions on Piazza

Posting rules on Piazza: When asking debugging questions about the homework, please:

Posts that do not adhere to the rules may be ignored. For example, simply posting a screenshot asking what is wrong does not follow the rules above.

Grading, Homeworks and Projects

There will be 4 programming homeworks (each 20%) and a final project (20%).

The homeworks involve quite a bit of programming and can be tough. They have been revised to be more challenging this year. Start early and ask questions!

Late penalty: score * clamp(1 - (seconds passed after midnight of the deadline day) / (3*86400), 0, 1)
(this means that after 3 days your score becomes 0! start early!)
We will use the time on Canvas to determine how many seconds have passed.

The homeworks will be based on the balboa codebase, which itself is built on slangpy.

Homework 1: 2D Graphics
Homework 2: 3D Rasterization
Homework 3: 3D Ray tracing
Homework 4: Animation with Position-based Dynamics (WIP)
Final project: Balboa++ (WIP)

Collaboration policy: We allow a team up to two people for both homeworks and final project. The homeworks are pretty dense and time-consuming (much harder than last year!), so we encourage you to team up. You can solo too if you want. You can switch to different teams for each homework and final project.

In-person code interview: After submitting the homework, each team will do a short interview during the Discussion section on Friday 3pm (right after the lecture). This will usually take around a minute or two (this is a big class so we need to be efficient). Both group members should attend, and either can answer the questions. We may ask you to explain a part of your implementation, predict what the code will do if we change something, or ask you to modify the code in a particular way. Some teams may get additional follow-up questions. The interview acts as a multiplier on your homework grade. Normally the multiplier is 1. Minor mistakes, nervousness, or forgetting syntax will not reduce your grade. If you have substantial difficulty explaining your code, we may ask more questions or do a longer follow-up. The multiplier will be reduced in serious cases after follow-up. If you cannot come to the discussion session, come to our office hours. (Missing the interview results in a multiplier of 0.) We are not testing whether you memorized Slang/Python syntax. We want to make sure you have an operational understanding of what your renderer is doing.

Language models policy. We do not encourage heavily using language models or coding agents for your homeworks and final projects. Figuring out how to do things your self is an important part of learning process. Treat language models as TAs/tutors: you can ask them questions, but you should not let them code for you. Maybe try coming to us first? Using language models for installing balboa/slangpy is acceptable (maybe even encouraged). In general, if you think more as a result of using language models, it's probably fine. If you use it to save time or think less, it's often not fine. If you used language models, you should report your usage in detail (saying "I used ChatGPT to help" is not sufficient).

Readings

All of these are optional.

Scratchapixel: cool website for starting learning about graphics.
CMU 15-462/662: a very nice (but intense) computer graphics course from Keenan Crane.
Stanford CS248a: a slightly more advanced version of this course. Also used Slang.
Immersive Linear Algebra: linear algebra tutorials with interactive figures.
Essence of Linear Algebra: video tutorials of linear algebra from 3Blue1Brown
Fundamentals of Computer Graphics from Steve Marschner and Peter Shirley is the standard textbook.
Computer Graphics: Principles and Practice from John Hughes, Andy van Dam, Morgan McGuire, David Sklar, James Foley, Steven Feiner, and Kurt Akeley is another standard textbook.
Physically-based Rendering: from Theory to Implementation contains a comprehensive reference to many topics we talk about. It might be a dense read though.
Ke-Sen's webpage is where you find all the (recent) cool graphics papers!

Schedule (very tentative)

9/25/2026 (Fri): Introduction. [slides] (HW 1 out)

Why computer graphics? Course overview.
(Brief) live coding/demo: showing my HW1 implementation.

9/28/2026 (Mon): 2D rasterization and GPU programming. [slides]

Pixels and screen coordinates. Rasterizing circles and polylines. Compute shaders and basic Slang programming.
Live coding/demo: compute shaders and showing things on screen.

9/30/2026 (Wed): Curves and paths. [slides]

Inside/outside tests and winding. Quadratic Bezier curves. Filling and stroking curves.
Live coding/demo: visualizing and manipulating Bezier curves.

10/2/2026 (Fri): Transformation and animation. [slides]

Basic linear algebra. 2D linear transformation. Affine transformation. Keyframes.
Live coding/demo: animating some points.

10/5/2026 (Mon): Antialiasing and transparency. [slides]

Sampling and aliasing. Supersampling. Alpha blending and compositing.
Live coding/demo: aliasing & transparency.

10/7/2026 (Wed): Procedural 2D graphics and shader art. [slides]

Procedural patterns, coordinate transformations, repetition, and animation. Making interesting images with very little code.
Live coding/demo: ShaderToy.

10/9/2026 (Fri): From 2D to 3D. [slides] (HW 2 out)

3D coordinates and transformations. Cameras and projection.
Live coding/demo: projecting and transforming some 3D points onto the screen.

10/12/2026 (Mon): Triangle rasterization. [slides] (HW 1 due)

Triangles and barycentric coordinates. Inside-outside tests. Interpolating vertex attributes. Z-buffering. Depth interpolation. Perspective-correct interpolation.
Live coding/demo: rasterizing a triangle from scratch.

10/14/2026 (Wed): Speeding up rasterization. [slides]

Paralell rasterization. Visibility buffer. Frustum/occlusion culling.
Live coding/demo: correct vs incorrect interpolations.

10/16/2026 (Fri): The graphics pipeline. [slides]

Vertex shaders, rasterization, fragment shaders, depth testing. How rasterization hardware implements the ideas we have been building.
Live coding/demo: render a triangle using hardware rasterizer

10/19/2026 (Mon): Textures. [slides]

Image textures. Procedural textures. UV mapping. Mipmapping.
Live coding/demo: some texture related stuff?

10/21/2026 (Wed): Lighting and shading. [slides]

Ambient/diffuse/specular lighting. Shading normals. Gouraud/Phong.
Live coding/demo: lighting a sphere in screen space

10/23/2026 (Fri): Triangle meshes and subdivision surfaces. [slides] (HW 3 out)

Geometry vs. topology. Triangle meshes, connectivity, boundaries, and normals. Subdivision surfaces and smooth geometry.
Live coding/demo: taking a coarse mesh and making it smooth in Blender.

10/26/2026 (Mon): Ray tracing. [slides] (HW 2 due)

Rays and camera rays. Ray-sphere and ray-triangle intersections. Closest-hit queries.
Live coding/demo: building a ray tracer from scratch.

10/28/2026 (Wed): Acceleration structures. [slides]

Bounding boxes. Bounding volume hierarchies. BVH construction and traversal.
Live coding/demo: render lots of spheres?

10/30/2026 (Fri): Implicit geometry and ray marching. [slides]

Implicit geometry. Signed distance fields. Ray marching and procedural shapes.
Live coding/demo: ray marching procedural SDF

11/2/2026 (Mon): Secondary rays, global illumination and path tracing. [slides]

Randomized rays. Soft shadows, glossy reflection, and environment lighting. Direct and indirect illumination. The rendering equation. Path tracing.
Live coding/demo: stochastic ray tracing.

11/4/2026 (Wed): Live coding!

Live demo/demo: a path tracer using implicit geometry & ray marching from scratch.

11/6/2026 (Fri): Physical simulation. [slides] (HW 4 out)

Particles, forces, numerical integration, and mass-spring systems.
Live coding/demo: particle systems/mass-spring systems.

11/9/2026 (Mon): Constraint-based Simulation. [slides] (HW 3 due)

Constraints. Position projection. Distance constraints. The Position-Based Dynamics algorithm.
Live coding/demo: PBD rope simulation.

11/11/2026 (Wed): Veterans Day Holiday.

11/13/2026 (Fri): Collision and contact. [slides]

Collision detection and response. Contact constraints. Simple collision handling for particles and cloth.
Live coding/demo: Collision stuff.

11/16/2026 (Mon): Character animation, rigid bodies, fluids, etc. [slides]

Forward and inverse kinematics. Rigging and skinning. Rigid bodies, fluids, and other approaches to physical simulation.
Live coding/demo: rig something.

11/18/2026 (Wed): Non-photorealistic rendering. [slides]

Cel shading, outlines, hatching, abstraction, and stylized rendering.
Live coding/demo: NPR stuff.

11/20/2026 (Fri): A brief history of computer graphics and graphics in production. [slides] (Final Project out)

How computer graphics went from academic research to production. How graphics systems are actually used by artists and engineers.
Live coding/demo: rig something.

11/23/2026 (Mon): Modern real-time rendering. [slides] (HW 4 due)

Virtualized geometry and textures. Temporal antialiasing and temporal reuse.
Live coding/demo: UE5?

11/25/2026 (Wed): Classical graphics in the age of generative AI. [slides]

Why do I even exist?

11/27/2026 (Fri): Thanksgiving Holiday.

11/30/2026 (Mon): Instructor out, used for discussion & interviews.

12/2/2026 (Wed): Instructor out, used for discussion & interviews.

12/4/2026 (Fri): Instructor out, used for discussion & interviews.

12/9/2026 (Wed): Final project presentation.