Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rksm/three-world

Create three.js "worlds" -- that is it packages the boilerplate code you usually need when setting up a three scene.
https://github.com/rksm/three-world

Last synced: about 1 month ago
JSON representation

Create three.js "worlds" -- that is it packages the boilerplate code you usually need when setting up a three scene.

Awesome Lists containing this project

README

        

## Scene setup for THREE

Create a THREE "world" -- that is it packages the boilerplate code you usually
need when setting up a THREE scene.

Examples:
- [box.html](http://robert.kra.hn/try-it/three-world/box.html).
- [tquery.html](http://robert.kra.hn/try-it/three-world/tquery.html).

### API

#### `THREE.World.create(parentElement, options, callback)`

- `parentElement` DOM element to append the 3D render canvas to.
- `options`: optional, OBJECT with:
- `useOrbitControl` BOOLEAN, requires THREE.OrbitControls to be loaded
- `useVR` BOOLEAN, requires THREE.VREffect and THREE.VRControls to be loaded