three.js
JavaScript 3D Component
The aim of the project is to create a lightweight 3D library with a very low level of complexity — in other words, for dummies. The library provides <canvas>, <svg> and WebGL renderers.
This is a slight adaption of the original three.js code to work as a
component.
Installation
$ component install timoxley/threejs
Usage
var THREE = require('threejs')
API
See the three.js website, documentation and
mrdoob's
github repo
Examples
For now, I've only modified
examples/webgl_terrain_dynamic.html to work with the
component modfications.
Build Caveats
Original three.js build system in
utils will
build the three.js
lib in the build
folder. This file needs to be renamed as index.js
in the project root.
Thanks
Thanks to mrdoob for his endless tirade of amazing
work.