
Computer Graphics from Scratch
by Gabriel Gambetta · first published 2020
27mentions
12recommended by
12HN commenters
2018–2026first – last mentioned
100% recommend
Affiliate links. As an Amazon Associate I earn from qualifying purchases.





May I suggest my book? The full contents are online: https://gabrielgambetta.com/computer-graphics-from-scratch/
on “Graphics Programming Weekly” ↗Free series: https://gabrielgambetta.com/computer-graphics-from-scratch/i...
on “Learn 3D Computer Graphics Programming from Scratch” ↗An alternative approach that is probably faster and simpler (no matrices or dot products), although slightly "less correct": http://www.gabrielgambetta.com/computer-graphics-from-scratc...
on “Rasterization in One Weekend” ↗Might I suggest http://www.gabrielgambetta.com/computer-graphics-from-scratc... (shameless plug)?
on “An Introduction to Ray Tracing (1989)” ↗A simpler, dirtier, much quicker approach (with essentially three divisions per triangle): https://gabrielgambetta.com/computer-graphics-from-scratch/f...
on “Triangle Rasterization in Practice” ↗So weird to open Hacker News in the morning and find my own writing on the front page :) Happy to answer any questions. Shameless plug I: check out these Client Side Prediction articles, they tend to be well received! https://gabrielgambetta.com/client-server-game-architecture.... Shameless plug II: check out my Computer Graphics textbook, https://gabrielgambetta.com/computer-graphics-from-scrat
on “Pathfinding Demystified (2014)” ↗I went through this set of lessons a couple of years ago. It is well worth doing. Interested folks may also want to take a look at Gabriel Gambetta's "Computer Graphics from Scratch" [1]. Both tutorials are excellent, but Gabriel's explanations just gelled a little bit better with my personal learning style. [1] https://www.gabrielgambetta.com/computer-graphics-from-scrat...
on “Raytracing in One Weekend (2016)” ↗You mention Computer Graphics and raytracing, so if you want to learn more about that, I wrote a book/website that would be great for you: https://gabrielgambetta.com/computer-graphics-from-scratch Happy to help if you get stuck!
on “Ask HN: CS grad who barely knows any CS” ↗The details are outdated now, I guess, but I don't know if there's any more inspiring reading for an aspiring graphics programmer than Fabian Giesen's "A trip through the graphics pipeline" https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-... As for a place to actually start, I think Computer Graphics From Scratch is a good place https://www.gabrielgambetta.com/computer-graphics-from-s
on “How do I become a graphics programmer? – A guide from AMD Game Engineering team” ↗May I add Computer Graphics From Scratch, which covers both rasterization and raytracing? https://gabrielgambetta.com/computer-graphics-from-scratch/i... I have to admit I'm quite surprised by how eerily similar this website feels to my book. The chapter structure, the sequencing of the concepts, the examples and diagrams, even the "why" section (mine https://gabrielgambetta.com/computer-graphics
on “Implementing a Tiny CPU Rasterizer” ↗For anyone interested in an accessible introduction to the (simple) math and algorithms behind this kind of software rasterizer, I present https://gabrielgambetta.com/computer-graphics-from-scratch (soon to become an actual book, thanks to the positive reception it has had in Hacker News!)
on “Computer Graphics Final Project 1989 Detailed” ↗I have a couple of contributions to your list: https://gabrielgambetta.com/tiny-raytracer.html and https://gabrielgambetta.com/computer-graphics-from-scratch/r...
on “Ray tracing in Excel” ↗Sure! I've written a full book about that: https://gabrielgambetta.com/computer-graphics-from-scratch/i... Currently working with No Starch Press to turn it into a real book :)
on “How Do Bullets Work in Video Games?” ↗My own free, open-source Computer Graphics book guides you through building both a raytracer and a rasterizer: https://gabrielgambetta.com/computer-graphics-from-scratch Soon to become a real book published by No Starch Press!
on “Ask HN: What are some books where the reader learns by building projects?” ↗So if someone is interested in these Computer Graphics resources, you might also like these links: Computer Graphics from Scratch: https://www.gabrielgambetta.com/computer-graphics-from-scrat... The tiny{raytracer,renderer,kaboom} series: https://github.com/ssloy/tinyraytracer & https://github.com/ssloy/tinyrenderer & https://github.com/ssloy/tinykaboom Ray tracing a tiny procedural planet: htt
on “Raytracing in One Weekend (2016)” ↗