Game Development Reference
In-Depth Information
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.
This topic 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.
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
 
Search WWH ::




Custom Search