Learn OpenGL, extensive tutorial resource for learning Modern OpenGL
Learn OpenGL: Extensive tutorial resource for learning Modern OpenGL
Learn OpenGL:学习现代 OpenGL 的综合教程资源
Welcome to the online book for learning OpenGL! Whether you are trying to learn OpenGL for academic purposes, to pursue a career or simply looking for a hobby, this book will teach you the basics, the intermediate, and all the advanced knowledge using modern (core-profile) OpenGL. The aim of LearnOpenGL is to show you all there is to modern OpenGL in an easy-to-understand fashion with clear examples, while also providing a useful reference for later studies.
欢迎来到这本学习 OpenGL 的在线书籍!无论你是为了学术目的、职业发展,还是仅仅出于个人爱好,本书都将使用现代(核心模式)OpenGL 教你从基础到进阶,再到所有高级知识。LearnOpenGL 的宗旨是以通俗易懂的方式和清晰的示例向你展示现代 OpenGL 的一切,同时也为你日后的学习提供一份实用的参考资料。
So why read these chapters? Throughout the internet there are thousands of documents, books, and resources on learning OpenGL, however, most of these resources are only focused on OpenGL’s immediate mode (commonly referred to as the old OpenGL), are incomplete, lack proper documentation, or are not suited for your learning preferences. Therefore, my aim is to provide a platform that is both complete and easy to understand. If you enjoy reading content that provides step-by-step instructions, clear examples, and that won’t throw you in the deep with millions of details, this book is probably for you.
为什么要阅读这些章节?互联网上有成千上万关于学习 OpenGL 的文档、书籍和资源,然而,大多数资源仅专注于 OpenGL 的立即渲染模式(通常被称为旧版 OpenGL),要么内容不完整,要么缺乏适当的文档,或者不适合你的学习习惯。因此,我的目标是提供一个既完整又易于理解的平台。如果你喜欢阅读那些提供分步指导、清晰示例,且不会让你陷入海量细节中无法自拔的内容,那么这本书可能非常适合你。
The chapters aim to be understandable for people without any graphics programming experience, but are still interesting to read for the more experienced users. We also discuss practical concepts that, with some added creativity, could turn your ideas into real 3D applications. If all of the previous sounds like someone that could be you, then by all means, please continue.
这些章节旨在让没有任何图形编程经验的人也能理解,同时也对更有经验的用户具有阅读价值。我们还讨论了一些实用概念,只要发挥一点创造力,就能将你的想法转化为真实的 3D 应用程序。如果以上描述让你觉得这就是在说你,那么请务必继续阅读。
What will you learn? The focus of these chapters are on Modern OpenGL. Learning (and using) modern OpenGL requires a strong knowledge of graphics programming and how OpenGL operates under the hood to really get the best of your experience. So we will start by discussing core graphics aspects, how OpenGL actually draws pixels to your screen, and how we can leverage that knowledge to create some funky looking effects. On top of the core knowledge we will discuss many useful techniques that you can use for your applications, like: traversing a scene, create beautiful lighting, load custom-made objects from a modelling program, do cool post-processing techniques, and much more.
你将学到什么?这些章节的重点是现代 OpenGL。学习(并使用)现代 OpenGL 需要扎实的图形编程知识,以及对 OpenGL 底层运作机制的深入了解,才能获得最佳的开发体验。因此,我们将从讨论核心图形学方面入手,了解 OpenGL 如何真正将像素绘制到屏幕上,以及如何利用这些知识创造出炫酷的效果。在核心知识之上,我们还将讨论许多可用于应用程序的实用技术,例如:场景遍历、创建精美的光照、从建模软件加载自定义对象、实现酷炫的后期处理技术等等。
We also feature a walkthrough series where we actually create a small game based on our obtained OpenGL knowledge, so you will really get a feel of what it’s like to actually do graphics programming.
我们还提供了一个实战系列,通过利用所学的 OpenGL 知识来创建一个小游戏,让你真正感受到进行图形编程是什么样的体验。
Where to start? Learn OpenGL is free, and will always be free, for anyone who wants to start with graphics programming. All content is available here at the menu to your left. Simply hit the Introduction button and you’re ready to start your journey!
从哪里开始?对于任何想要开始学习图形编程的人来说,Learn OpenGL 是免费的,并且永远免费。所有内容都可以在左侧菜单中找到。只需点击“Introduction”(简介)按钮,你就可以开启你的学习之旅了!
Learn OpenGL - print edition: The content has been thoroughly revised, numerous times, over the course of 7 years to have finally been aggregated into a physical copy available for print. There’s been a lot of work put into the physical copy, treating it as the first-class citizen it is. Both the book and website are equals, their content is the same. As everything is freely available online, getting the physical copy supports me as an author; and let’s not forget that certain charm of printed paper.
Learn OpenGL - 印刷版:经过 7 年的多次彻底修订,内容最终汇编成册并可供印刷。我们为实体书投入了大量心血,将其视为与网站同等重要的资源。书和网站的内容完全一致。由于所有内容都可以在线免费获取,购买实体书是对我作为作者的支持;当然,也别忘了纸质书独有的那种魅力。