What computer graphics is
Computer graphics is drawing pictures on a computer screen with the help of programming.
A screen is a grid of tiny dots of light called pixels. Every picture you have ever seen on a screen, whether a game, a film’s special effects, a map on your phone or a button in an app, got there because a program decided which pixels to light up and in what colour. Computer graphics is the study of how programs make those decisions, quickly and well.
It covers four things you do with pictures on a computer:
- Creating them, for example drawing a line from one point to another.
- Storing them, so the computer can keep them in memory.
- Changing them: moving, turning, shrinking or stretching a shape.
- Displaying them on the screen, many times a second, so that movement looks smooth.
What you’ll be able to do
By the end you will be able to:
- explain how a screen shows a picture, and how much memory one screen’s worth takes;
- draw lines, circles and filled shapes by hand, pixel by pixel, the way a computer does;
- cut away the parts of a drawing that fall outside a window;
- move, turn and resize shapes using matrices (grids of numbers);
- draw smooth curves from a handful of points;
- work out which objects in a 3D scene are hidden behind others;
- explain how games draw 3D worlds in real time, and how films get their lighting realistic.
Where to start
The course has two parts. Start with Part 1 if this subject is new to you. It begins with the screen itself and builds up one small step at a time. Part 2 is about how modern 3D rendering works, and it assumes you have Part 1.
If you’re revising for the SSG 511 exam, Part 1 plus the three exam notes at the end cover the whole exam.
Part 1: Drawing on the screen (start here)
Read 01 → 02 → 03 in order. After that, 04 to 07 can be read in any order.
- Graphics Systems and Display Hardware: what graphics is for, how a screen draws a picture line by line, and how much memory a picture needs.
- Line Drawing and Antialiasing: how a computer draws a straight line out of square pixels, and how to make it look less jagged.
- Circles and Polygon Filling: drawing circles and ellipses, and colouring in the inside of a shape.
- Clipping: cutting off the parts of a drawing that fall outside the window you’re looking through.
- 2D and 3D Transformations: moving, turning and resizing shapes with matrices.
- Curves: Bézier and B-splines: drawing smooth curves, like the pen tool in a design app, from a few control points.
- Visible Surface Detection: working out which objects are in front, so hidden ones aren’t drawn.
Part 2: How modern 3D pictures are made
09 to 13 build on each other, so read them in order. 14 stands on its own. 15 and 16 are about shapes and movement.
- How Rendering Works: the two ways to turn a 3D scene into a flat picture, and the one equation both are trying to solve.
- The Transform Pipeline: the steps that carry a 3D object from where it sits in the world to a spot on your screen.
- Rasterisation: how a graphics card fills in triangles pixel by pixel, and keeps track of what’s in front.
- Shading and Lighting: how light and materials decide each pixel’s colour, so metal looks like metal and wood like wood.
- Textures and Sampling: wrapping images around 3D shapes, and keeping them sharp but not shimmering.
- The GPU Graphics Pipeline: how a graphics card is programmed, and which tools to learn it with.
- Ray Tracing and Path Tracing: following rays of light around a scene, the way films get realistic lighting.
- Geometry and Meshes: how 3D shapes are stored as many small triangles, and other ways to describe them.
- Animation and Simulation: making things move: turning smoothly, bending characters, and simple physics.
Exam support (SSG 511)
- SSG 511 Question Bank: the exam paper and every assignment question, without answers, each pointing to the note that teaches it.
- COMSOL: Modelling Ink Jet Breakup: the model answer to exam question 3. It’s about fluids, not graphics, so skip it unless you need it.
- SSG 511 Formula Sheet: every Part 1 formula on one page.
Practice
- Practice Exercises: twelve exercises, from colouring a shape by hand to writing a small program that draws a picture.
- Solutions: worked answers. Try first.
- SSG 511 Question Bank: Part 1’s practice. Notes 02, 04 and 06 have small programs to check your answers.
- Build your own ray tracer: a step-by-step project. You write a program that draws a 3D scene with realistic light, from scratch.
Key ideas to remember
Once you’ve read the notes, these are the points worth keeping. Each links to where it’s explained.
- Drawing a line is a choice between two pixels at every step: which one is closer to the true line? A computer answers that using only whole numbers, which is fast. → 02
- Always step along the longer direction of a line, or it comes out with gaps. → 02
- In clipping, a “maybe” isn’t a “yes”. When a line’s codes don’t rule it out, you still have to cut it and check again. → 04
- Moving a shape can’t be done by multiplying with a 2 × 2 grid. That’s why graphics adds an extra coordinate, so moving, turning and resizing all become one multiplication. → 05
- A smooth curve can be split in half at any point using a simple averaging trick, which is how computers draw curves. → 06
- There are two ways to draw a 3D scene. Fill in triangles one at a time (fast; used by games), or follow rays of light (slow but realistic; used by films). → 08
- The depth buffer won because it needs no sorting. Each pixel remembers how far away its colour came from, and a nearer object simply replaces it. → 10
- Do lighting maths before converting colours for the screen, or the picture comes out too dark with washed-out highlights. → 11
- To find out what’s slowing a game down, lower the resolution. If it doesn’t get faster, the graphics card isn’t the problem. → 13
- Move physics forward in fixed steps, not “however long the last frame took”, or the simulation behaves differently on fast and slow machines. → 16
Where to go next
- Ray Tracing in One Weekend: free, short, and you finish with a real picture made by your own program. The best first project in graphics.
- LearnOpenGL: free lessons on drawing 3D scenes with a graphics card.
- Shadertoy: write a small program in your browser and see the picture change instantly.
- Books: Fundamentals of Computer Graphics (Marschner and Shirley) for the basics. After that, Physically Based Rendering (Pharr, Jakob and Humphreys), which is free online.
Related
- GPU and Parallel Computing: graphics cards were invented for this work.
- Numerical Methods: the maths behind curves and light calculations.
- Computer Vision: the reverse problem, getting a scene back from a picture.
About this course
- Size: 21 notes, about 40,000 words, including practice, solutions, a question bank and a formula sheet.
- History: Part 2 (modern 3D, notes 08–18) was written in August 2026. Part 1 (drawing on the screen, notes 01–07) and the exam notes (19–21) were added in November 2026 from the SSG 511 course notes, and the notes were renumbered so the beginner part comes first.
- Not covered yet: colour science in depth, smoke and fog, light passing through skin, generating content procedurally, VR and AR, video compression, and drawing text and fonts.
Software engineering
Infrastructure & security
Computer science
Hardware & engineering