问题描述
我是新手,开始了解网络浏览器中的 3D 计算机图形.我对在浏览器中制作 3D 游戏很感兴趣.对于已经学习过 WebGL 和three.js 的任何人...
I'm new and starting to learn about 3D computer graphics in web browsers. I'm interested in making 3D games in a browser. For anyone who has learned both WebGL and three.js...
使用three.js是否需要WebGL的知识?
Is knowledge of WebGL required to use three.js?
使用three.js与WebGL相比有什么优势?
What are the advantages of using three.js vs. WebGL?
推荐答案
既然你有远大的抱负,你就必须花时间学习基础知识.这不是你先学什么的问题——如果你愿意,你可以同时学习它们.(这就是我所做的.)
Since you have big ambitions, you have to invest the time to learn the fundamentals. It is not a matter of what you learn first -- you can learn them simultaneously if you want to. (That's what I did.)
这意味着您需要了解:
- WebGL 概念
- 三个.js
- 基础数学概念
Three.js. Three.js 在抽象出 WebGL 的许多细节方面做得非常出色,因此就我个人而言,我建议在您的项目中使用 Three.js.但请记住,Three.js 处于 alpha 阶段,并且经常变化,因此您必须为此做好准备.大多数人通过学习示例来学习 Three.js.避免使用过时的书籍和教程,并避免来自网络的链接到旧版本库的示例.
Three.js. Three.js does an excellent job of abstracting away many of the details of WebGL, so personally, I'd suggest using Three.js for your project. But remember, Three.js is in alpha, and it is changing frequently, so you have to be prepared for that. Most people learn Three.js by studying the examples. Avoid outdated books and tutorials, and avoid examples from the net that link to old versions of the library.
WebGL.如果你使用 Three.js,你不需要知道如何在 WebGL 中编程,你只需要了解 WebGL 的概念.这意味着,您只需要能够阅读其他人的 WebGL 代码并理解您阅读的内容.这比自己从头开始编写 WebGL 程序要容易得多.您可以使用网络上的任何教程很好地学习 WebGL 概念,例如 WebGLFundamentals.org 和学习 WebGL.
WebGL. If you use Three.js, you don't need to know how to program in WebGL, you just need to understand the WebGL concepts. That means, that you just need to be able to read someone else's WebGL code and understand what you read. That is a lot easier than being expected to write a WebGL program yourself from scratch. You can learn the WebGL concepts sufficiently well using any of the tutorials on the net, such as the beginner's tutorial at WebGLFundamentals.org and Learning WebGL.
数学.同样,您至少需要理解概念.三本好书是:
Math. Again, you at least need to understand the concepts. Three good books are:
图形和游戏开发的 3D 数学入门 作者:弗莱彻·邓恩 (Fletcher Dunn) 和伊恩·帕伯里 (Ian Parberry)
3D Math Primer for Graphics and Game Development by Fletcher Dunn and Ian Parberry
游戏和互动应用的基本数学:A程序员指南 作者:James M. Van Verth 和 Lars M. Bishop
Essential Mathematics for Games and Interactive Applications: A Programmer’s Guide by James M. Van Verth and Lars M. Bishop
3D 游戏编程和计算机图形的数学 作者:Eric Lengyel
Mathematics for 3D Game Programming and Computer Graphics by Eric Lengyel
希望对你有帮助.祝你好运.
I hope this is helpful to you. Good luck.
这篇关于学习 WebGL 和 Three.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!