We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
WebGL 和 OpenGL ES 2.0 非常相似。特别是如果您只是想弄清楚特定函数的作用,OpenGL ES 和普通 OpenGL 文档可能会提供有用的见解。不过,特别是在查看 OpenGL 文档时,请记住某些功能可能不存在,函数签名可能略有不同等。
就我个人而言,我发现 Joe Groff 的介绍非常有帮助。他深入研究了 OpenGL 2.0 的现代技术,并废除了 OpenGL ES 2.0 和 WebGL 没有任何方式并且不再真正使用的旧功能。
除此之外,我发现 WebGL 规范本身 实际上是一个不错的参考。它链接到 OpenGL ES 2.0 手册页,并描述了略有不同的功能。
我想您已经运行了一些示例,因此您已经知道设置的基本过程。 (基本上就是:获取上下文、设置视口、编译着色器。)如果没有,learningwebgl.com 专门处理 WebGL。 (不过,我发现 Joe Groff 的介绍总体上对 3D 和 OpenGL 概念提供了更多信息。)
剩下的只是 JavaScript。 :)
WebGL and OpenGL ES 2.0 are very similar. Especially if you're just interested in figuring out what specific functions do, OpenGL ES and plain OpenGL documentation may give useful insights. Though, especially when looking at OpenGL documentation, keep in mind that some functionality may not be there, function signatures may be slightly different, etc.
Personally, I found Joe Groff's introduction to be very helpful. He goes into modern techniques from OpenGL 2.0, and does away with older functionality that OpenGL ES 2.0 and WebGL don't have any way and isn't really used much any more.
Other than that, I find the WebGL spec itself is actually a decent reference. It links to OpenGL ES 2.0 manual pages, and describes functions where they slightly differ.
I figure you already have some examples running, so you already know the basic procedure of setting things up. (Basically just: get context, set up viewport, compile shaders.) If not, there is a good set of tutorials on learningwebgl.com that deal specifically with WebGL. (Though, I found Joe Groff's introduction more informative on 3D and OpenGL concepts in general.)
The rest is just JavaScript. :)