“Take a look at these sources for absolute beginners.”
Joey de Vries 的在线教程,用 C++ 和 GLFW 从创建窗口讲起,一步步到基于着色器的现代 OpenGL,包括摄像机、光照、模型加载以及阴影映射、延迟渲染和 PBR 等高级主题。每章配有图示和完整源码,循序渐进。它是官方免费在线阅读的网站,没有开放许可。与偏数学理论的图形学教材相比,更偏实践,适合边写边学。
HN 上的人把它当作学图形编程最常推荐的资源,说它从基础讲起、解释清楚,PBR 部分也常被引用,学完后能把知识迁移到其他图形 API。
想入门图形编程、会写 C++ 的人
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1从入门部分的窗口、着色器和纹理开始,按顺序读
- 2每章都自己敲代码跑通,不要只复制
- 3读完光照部分后再看模型加载和高级主题
- 4想了解背后数学时配合图形学理论书看
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“Online resources, the free Learn OpenGL and the $10 (链接) are both fantastic.”
“There are several sites that teach OpenGL, which is one of the main APIs today:”
“The PBR tutorial series on LearnOpenGL.com covers a lot of the concepts implemented here like physically based BRDFs and HDR lighting, if anyone is looking for more resources like this.”
“With C++ both OpenGL and Vulkan have excellent didactic material, including:”
“For something a bit more modern, I'd recommend [0]”
看全部 20 条 →
“OpenGL stuff are usually found at docs.gl, Learn OpenGL.”
“Learn OpenGL is decent enough from what I have seen.”
“LearnOpenGL.com's tutorials are where I learned it from.”
“the LearnOpenGL tutorial series [2] is excellent, and uses GLFW for managing a window and getting an OpenGL context.”
“this is a pretty damn good tutorial for learning how to write shaders in opengl: Learn OpenGL”
“I recommend using the fantastic Learn OpenGL site. It goes through the basics of OpenGL from ground-up”
“If someone is looking for a resource to help learn OpenGL, I found Learn OpenGL extremely helpful.”
“When I was learning 3D graphics, I found this site an excellent resource.”
“This is good. The rest is more of theory.”
“Learn OpenGL -- For learning modern OpenGL”
“If you do want to use OpenGL, I found these to be good resources: (链接) and Learn OpenGL”
“Together with Learn OpenGL I learned most I know about graphics.”
“I don't know a good place to recommend to use more common techniques. A few though would be”
“I found graphics programming impenetrable until I found Learn OpenGL. Going through the articles there was enough for me to feel comfortable working in all the other graphics APIs, even Vulkan.”