aframe-destiny-model-component
Load Destiny game models from the Bungie API.
Currently handles a few global variables very bluntly. Feel free to drop an Issue or a Pull Request if you've a better idea for how to handle them.
For A-Frame.
API
Property | Description | Default Value |
---|---|---|
itemHash | itemHash of the item you would like to load. | |
shaderHash | itemHash of the shader you would like to apply. 0 applies default shader. |
0 |
game | Accepts destiny or destiny2 |
destiny2 |
platform | Accepts web or mobile . Web seems to only work for Destiny 1 assets. Mobile requires you host manifest proxies. See the TGXLoader documentation for more info. |
mobile |
apiKey | The Bungie API Key for your app | window.DESTINYMODELCONFIG.apiKey |
d1Manifest | Destiny Manifest proxy URL | window.DESTINYMODELCONFIG.d1Manifest |
d2Manifest | Destiny 2 Manifest proxy URL | window.DESTINYMODELCONFIG.d2Manifest |
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-destiny-model-component
Then require and use.
;;