- 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?
- The Complete Rust Programming Reference Guide
- 深入理解Bootstrap
- R語言經(jīng)典實例(原書第2版)
- Visual Basic編程:從基礎(chǔ)到實踐(第2版)
- Python網(wǎng)絡(luò)爬蟲從入門到實踐(第2版)
- Reactive Programming With Java 9
- Python數(shù)據(jù)挖掘與機器學(xué)習(xí)實戰(zhàn)
- SQL Server實用教程(SQL Server 2008版)
- .NET Standard 2.0 Cookbook
- 軟件體系結(jié)構(gòu)
- 網(wǎng)絡(luò)數(shù)據(jù)采集技術(shù):Java網(wǎng)絡(luò)爬蟲實戰(zhàn)
- 大數(shù)據(jù)時代的企業(yè)升級之道(全3冊)
- PhoneGap 4 Mobile Application Development Cookbook
- Visual Basic程序設(shè)計實驗指導(dǎo)及考試指南
- Yii2 By Example