Playground is an object-oriented Three.js boilerplate. Three.js projects have a lot of boilerplate code that quickly becomes tedious to write. Additionally as these projects grow, they become difficult to understand and maintain. Playground attempts to solve those issues by providing a core library that handles all the behind-the-scenes Three.js setup and rendering code.
Please see the public example for basic usage. Please visit Tribble for more in-depth demos.
bower install playground --save
You'll need to download and include the following dependencies.
Some features include:
- Clock pausing and resuming on tab-switching.
- Manually pause the renderer with the 'space' key.
- Reset the camera with the 'r' key.
- Fully customizable key-bindings.
- Dynamically load and reset scenes.
- Automatic window resize.
Please work with public/assets/js/lib/playground.js
. The files inside
build/
should not be edited since they are autogenerated with gulp.