- Game Development with Three.js
- Isaac Sukin
- 313字
- 2021-07-23 15:45:43
The wonderful world of Three.js
Three.js is a JavaScript library that simplifies displaying 3D graphics in web browsers. Artists, major brands, and many others are increasingly using Three.js to power immersive online experiences that can reach millions of people across many platforms. There are many inspiring demos of the technology at http://threejs.org/.
Three.js is usually used with a new technology called WebGL, a JavaScript API for rendering graphics without plugins. The API is based on OpenGL, a desktop graphics API (GL stands for graphics library). Because it uses the client's graphics processing unit to accelerate rendering, WebGL is fast! However, many mobile browsers as well as Internet Explorer 10 and below do not support WebGL. Luckily, Three.js supports rendering with the HTML5 Canvas API as well as other technologies such as Scalable Vector Graphics instead.
Note
You can find up-to-date information on browser support at http://caniuse.com/webgl.
Three.js is originally written and maintained by Ricardo Cabello, who is also known as Mr.Doob. The library is open source (MIT-licensed) and is available from its GitHub page, https://github.com/mrdoob/three.js. The documentation of Three.js is available online at http://threejs.org/docs/. When the documentation is insufficient, the best place to look is the examples
folder of the project, which contains a large collection of examples demonstrating different features. You can browse the examples online at http://threejs.org/examples/. The source code in the src
folder is also worth browsing if you need to know how a certain class works or what methods and properties it exposes. Developers respond to questions about Three.js on the Q&A site StackOverflow, so if you are confused about something, you can browse questions with the three.js
tag or ask your own.
Tip
This book was written with Version r61 of the Three.js project. Certain parts of the API are still under development, but anything that is likely to change will be pointed out when it is introduced.
- DB2 V9權(quán)威指南
- R語(yǔ)言數(shù)據(jù)分析從入門到精通
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Learning PostgreSQL
- Python機(jī)器學(xué)習(xí):數(shù)據(jù)分析與評(píng)分卡建模(微課版)
- SQL for Data Analytics
- Essential Angular
- Python深度學(xué)習(xí):基于TensorFlow
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- The Professional ScrumMaster’s Handbook
- Java圖像處理:基于OpenCV與JVM
- SQL Server 2008中文版項(xiàng)目教程(第3版)
- 深入淺出 HTTPS:從原理到實(shí)戰(zhàn)
- Learning TypeScript