Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rksm/three-world
- Owner: rksm
- Created: 2014-12-13T23:26:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-21T01:08:58.000Z (about 10 years ago)
- Last Synced: 2024-10-13T10:25:24.515Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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