- Game Development with Three.js
- Isaac Sukin
- 135字
- 2021-07-23 15:45:44
Let's code!
Because Three.js runs in web browsers, it can run on—and be developed on—many different platforms. In fact, we're going to build our first Three.js project directly in a browser!
Open up http://mrdoob.com/projects/htmleditor/. You should see HTML and JavaScript code overlaid on top of a spinning sphere-like shape, as shown in the following screenshot:

The online Three.js editor
This is the Hello, World
program of Three.js—the minimum code required to get a spinning shape rendering in the browser. The preview will automatically update when you change any code, so go ahead and play with it and see what happens. For example, try changing THREE.MeshBasicMaterial
to THREE.MeshNormalMaterial
. What happens if you change IcosahedronGeometry
to TorusKnotGeometry
? Try fiddling with some numbers. Can you make the shape rotate faster or slower?
- Vue.js 3.x快速入門
- Python科學計算(第2版)
- Microsoft Application Virtualization Cookbook
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- C語言程序設計(第2版)
- Web Development with Django Cookbook
- x86匯編語言:從實模式到保護模式(第2版)
- Android 應用案例開發大全(第3版)
- ArcGIS By Example
- Angular開發入門與實戰
- SQL Server與JSP動態網站開發
- C++從入門到精通(第5版)
- Java Web開發就該這樣學
- Android傳感器開發與智能設備案例實戰
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)