Template Three.js Application with Documentation

Code

Here is the code that produced the program above:



As you can see, it is very short. The TW.cameraSetup() function does the work of setting up a useful default camera for you, so that you can look at your scene from all sides. All you have to do is give it a general idea of where your scene is, using the {} object with properties like minx.