按年被提到
20172021 · 7 次2026
开源书›图形与游戏·No.77

Computer Graphics from Scratch

从零开始学计算机图形学
Gabriel Gambetta

只靠一个画点函数,从零写出光线追踪器和光栅化器

免费阅读 ↗
被推荐 · 23 人首次 2017-11-09 · 最近 2026-07-23官方免费在线(版权保留,作者或出版社免费放出)
23不同的人
16活跃月份
9有推荐的月份
21讨论串

Gabriel Gambetta 的入门书,从最基本的画点(PutPixel)出发,一步步实现光线追踪器和光栅化渲染器。讲法偏直观,数学只讲够用的部分,与具体语言和图形 API 无关,读者可以用任何语言照着实现。和直接教 OpenGL 的教程相比,它先讲清渲染背后的原理。全书可在官方网站免费在线阅读。

HN 为什么推荐它

HN 上的人反复称它对初学者友好、讲解清楚、不啰嗦,并把它当作学图形学原理的好起点;有人说它比绑定 OpenGL 的教程更讲基础。

难度 2 / 5约 30 小时
适合谁

想弄懂渲染原理的编程初学者

读之前最好知道
1一门编程语言基础
2高中数学(向量、坐标)

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读光线追踪部分,边读边自己写出能出图的渲染器
  2. 2再读光栅化部分,对比两种方法的思路
  3. 3每章都动手实现,用自己熟悉的语言
  4. 4读完后可去读专门的图形学数学或着色器资料

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
推荐kevinskii · 2020-12

“Both tutorials are excellent, but Gabriel's explanations just gelled a little bit better with my personal learning style.”

称两份教程都很棒,但这本讲解更合自己的学习风格
Raytracing in One Weekend (2016)原评论 ↗
推荐pcr910303 · 2020-12

“So if someone is interested in these Computer Graphics resources, you might also like these links:”

把它作为相关的计算机图形学资源一并推荐
Raytracing in One Weekend (2016)原评论 ↗
推荐huskyr · 2021-02

“Excellent resource! I really like the fact that everything is centred around the idea of just a single 'PutPixel' function.”

称赞它全围绕单个 PutPixel 函数展开
Computer Graphics from Scratch原评论 ↗
推荐d26900 · 2021-02

“Here are great resources:”

列为学 rasterizer 和 ray tracer 基础的好资源
Graphics Programming Weekly原评论 ↗
推荐cassepipe · 2021-03

“your method is very clear for a beginner and your explanations are good and straight to the point.”

称讲法对初学者很清晰,解释简明切题
IceCube detection of a high-energy particle proves 60-year-old theory原评论 ↗
推荐wernsey · 2021-03

“Gabriel Gambetta's book Computer Graphics from Scratch is available freely online and was discussed here just the other day:”

指出这是 Gambetta 的免费在线书,适合入门图形学内部原理
Multithreading for Game Engines原评论 ↗
看全部 15 条 →
推荐rembicilious · 2022-01

“This walks through the creation of a raytracer and a rasterizer in a way that was pretty easy for me to understand. It’s not exhaustive; it’s just right.”

称带着做 raytracer 和 rasterizer 很好懂,不求面面俱到但恰到好处
Finding your home in game graphics programming原评论 ↗
推荐tgflynn · 2022-03

“I haven't actually looked at the third but I found I had a bookmark for it.”

把它当作软件渲染教程,自己存了书签
Introduction to GPUs with OpenGL原评论 ↗
推荐Al0neStar · 2023-05

“"Computer Graphics from Scratch: A Programmer's Introduction to 3D Rendering"”

把它列为最佳免费 CS 资料中的图形学一本
Can we create a thread for some of the best materials on CS available online?原评论 ↗
推荐doz14112 · 2023-05

“5. Computer Graphics from Scratch (Gabriel Gambetta): Website - Computer Graphics from Scratch”

把它列为在线计算机图形学资源之一
Can we create a thread for some of the best materials on CS available online?原评论 ↗
推荐wly_cdgr · 2023-11

“I think Computer Graphics From Scratch is a good place Computer Graphics from Scratch. A great thing about the book is it gives you many ideas for where to go next once you work your way through to the end.”

推荐作图形编程起点,读完还给出许多后续方向
How do I become a graphics programmer? – A guide from AMD Game Engineering team原评论 ↗
推荐drivers99 · 2026-01

“I really enjoyed this one as an introduction: Computer Graphics from Scratch”

称读得很享受,推荐作 ray tracing 和 rasterization 入门
I canceled my book deal原评论 ↗
推荐troupo · 2026-07

“every sibgle link there is better than these "fundamentals": (链接) E.g. "Computer Graphics from Scratch" Computer Graphics from Scratch or Mathematics for Computer Graphics (链接)”

认为它比 OpenGL 教程里的所谓基础讲得更好
Learn OpenGL, extensive tutorial resource for learning Modern OpenGL原评论 ↗
引用Zababa · 2021-05

“the book seems oriented at beginners, which I like because I previously tried and failed to build a raytracer following the raytracer in one weekend project, and I think I could achieve it with this book.”

喜欢它面向初学者,觉得靠它能做出之前没做成的 raytracer
An In-Depth Look at What/How/Why Books Sell (2016)原评论 ↗
引用pipes · 2026-03

“I was looking at a few odd ball programming books on my shelf, graphics programming from scratch and retro game dev (c64 edition and nes editions)”

提到自己书架上有这本,和几本冷门编程书放一起
Show HN: Claude Code skills that build complete Godot games原评论 ↗
被提交为 story · 9 次