“Peter Shirley's "Ray Tracing in One Weekend" is probably the best zero-to-one introduction to graphics”
Ray Tracing in One Weekend
用 C++ 一个周末写出能渲染的光线追踪器
Peter Shirley 等人用很短的篇幅,从输出一张图片开始,逐步实现光线、球体、材质、相机等,最终得到一个能渲染出带反射和折射场景的路径追踪器。代码用 C++ 写,但思路足够通用,可以换成其他语言实现。它是 One Weekend 系列的第一本,后面还有续作继续深入。以简短、增量式推进见长。
HN 上的人认为它是从零入门图形学和渲染的最佳项目,篇幅短、很快就能在屏幕上看到结果,也常被推荐用来练习一门新语言。
想动手入门图形学和渲染的程序员
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1从头按章节写代码,每章都运行看效果
- 2不必拘泥于 C++,可以用熟悉的语言重写
- 3做完第一本再读后续两本,加入更多渲染技术
- 4需要理论补充时再查图形学教材
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“I'd also highly recommend Ray Tracing in One Weekend[1]”
“Ray Tracing in a Weekend is an incredible guide to work through to write a basic functioning ray tracer.”
“Ray Tracing in One Weekend series is a great way to learn enough about ray tracing to implement it yourself.”
“Check Ray Tracing In One Weekend out: Ray Tracing in One Weekend”
“A good intro to rendering is reading Raytracing in a Weekend”
看全部 20 条 →
“Peter Shirley's one is nice too!”
“I’d recommend either Keenan Crane’s Discrete Differential Geometry course ((链接) and (链接)) or Peter Shirley’s Ray Tracing in a Weekend Series.”
“Here's a great primer on that topic - it's still actively developed and made me look at modern ray tracing technology in awe.”
“Peter Shirley's free Ray Tracing series is incredibly good as well:”
“Peter Shirley's Ray Tracing in One Weekend book (and sequels) are also fun little projects”
“The book RayTracingInOneWeekend[1] is a good starting point for people looking to write a raytracer.”
“Ray Tracing in One Weekend, which is pretty good (IMO mostly on account of its brevity)”
“Ray Tracing in One Weekend - a basic raytracer that incrementally adds features”
“I can vouch for the first two as being good.”
“I can recommend Ray Tracing in One Weekend [1]. Not only will you learn how to write a path tracer”
“The entire ray tracing in one weekend[1] series is really good book for getting into computer graphics.”
“Do Raytracing in One Weekend[1] in one of them. Then rewrite it again in the other.”
“Raytracing in a weekend is also useful:”
“you might be interested in the "One Weekend" series [2], which is all C++ but is mostly general enough for other languages.”