threex.crates is a threex game extension for three.js. It provides crates models, 3 of them to be accurate. Yeah you heard me, this is only boxes of wood. Why doing an extension for that? Well, because crates are like a myth in 3d graphics, we put them everywhere. So if you need crates to easily put in your game, you know where to find them now :)
- examples/basic.html [view source] : It shows all the balls on a single screen.
You can install it via script tag
<script src='threex.crates.js'></script>
Or you can install with bower, as you wish.
bower install threex.crates
To create a crate0, just do
var mesh = THREEx.Crates.createCrate0()
scene.add(mesh)
To create a crate1, just do
var mesh = THREEx.Crates.createCrate1()
scene.add(mesh)
To create a crate2, just do
var mesh = THREEx.Crates.createCrate2()
scene.add(mesh)