Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Computer Graphics from Scratch

    Computer Graphics from Scratch

    Gabriel Gambetta · 2020

    Computer Graphics from Scratch demystifies the algorithms used in modern graphics software and guides beginners through building photorealistic 3D renders. Computer graphics programming books are often math-heavy and intimidating for newcomers. Not this one. Computer Graphics from Scratch takes a simpler approach by keeping the math to a minimum and focusing on only one aspect of computer graphics, 3D rendering. You’ll build two complete, fully functional renderers: a raytracer, which simulates rays of light as they bounce off objects, and a rasterizer, which converts 3D models into 2D pixels. As you progress you’ll learn how to create realistic reflections and shadows, and how to render a scene from any point of view. Pseudocode examples throughout make it easy to write your renderers in any language, and links to live JavaScript demos of each algorithm invite you to explore further on your own.

    Computer ScienceProgramming
    Open LibraryAmazon
    Stats for nerds
    12recommend
    27mentions
    12people
    2018–2026years
    96% recommend4% neutral

    Mentions per year

    201820192020202120222023202420252026

    What Hacker News says

    1. troupoJul 2026
      It's not just because of that. Everything is steeped in OpenGL API. All the "fundamentals" are about OpenGL.

      Another link floated to the top of HN discussion just now, and every sibgle link there is better than these "fundamentals": https://news.ycombinator.com/item?id=49022038 E.g. "Computer Graphics from Scratch" https://gabrielgambetta.com/computer-graphics-from-scratch/ or Mathematics for Computer Graphics https://www.amazon.co.uk/Mathematics-Computer-Graphics-John-...

      thread
    2. drivers99Jan 2026
      I really enjoyed this one as an introduction: https://www.gabrielgambetta.com/computer-graphics-from-scrat...

      It touches on both ray traced and raster graphics. It lets you use whatever language and graphics library you want as long as you can create a canvas/buffer and put pixels on it so you can target whatever platform you want. It includes links to JavaScript for that if you want. (I didn’t want to use a new-to-me language so I used python and Pygame at the expense of speed.)

      thread
    3. ggambettaJan 2026
      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-from-scratch/0... - theirs https://lisyarus.github.io/blog/posts/implementing-a-tiny-cp...)

      I don't know what to make of this. Maybe there's nothing to it. But I feel uneasy :(

      thread
    4. ggambettaDec 2025
      OP's link is a good one, but if you want a different perspective (heh), there's https://gabrielgambetta.com/computer-graphics-from-scratch/i..., also from scratch, also for free. The name clash is unfortunate, I don't really know who started using it earlier :(
      thread
    5. ggambettaSep 2024
      If you're interested in understanding the graphics algorithms and implementing them yourself, as opposed to using an engine or a library, check out https://gabrielgambetta.com/computer-graphics-from-scratch It guides you through writing a software rasterizer and a raytracer, and most of what you learn can be applied to GPU programming.
      thread
    6. beeburrtDec 2023
      Here's a free book:

      https://www.gabrielgambetta.com/computer-graphics-from-scrat...

      thread

    Related

    Cover of Physically Based Rendering
    2010–2026

    Physically Based Rendering

    Matt Pharr
    92 recommend · 157
    Cover of The art of computer programming
    2007–2026

    The art of computer programming

    Donald Knuth
    336 recommend · 1,799
    Cover of Computer graphics
    2018–2024

    Computer graphics

    Steven Harrington
    1 recommend · 4
    Cover of Graphics gems
    2010–2026

    Graphics gems

    Andrew S. Glassner
    15 recommend · 29
    Ray Tracing in One WeekendPeter Shirley
    2016–2026

    Ray Tracing in One Weekend

    Peter Shirley
    48 recommend · 84
    Cover of Code
    2008–2026

    Code

    Charles Petzold
    243 recommend · 385
    Cover of Zen of Graphics Programming
    2011–2026

    Zen of Graphics Programming

    Michael Abrash
    8 recommend · 12
    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894