This is a convenience library to support processing of Khronos glTF files. It is inspired by Fabrice Robinet's glTF-parser.js but provides some convenience functionality and is available as NPM package.
⚠️ The library is not yet complete and the API is likely to change
Installation
$ npm install gltf-walker
Functionality
- Callbacks for all components in order of dependencies textures
- Resolves named references in JSON to real object references in JavaScript
- Buffers: Creates ArrayBuffer objects from data URLs
- Shaders: Creates strings from data URLs
- Resolve relative URIs (optional)
Usage
var walker = ;var json = JSON; // Callbacks for all components, called in order of dependencies;
TODO
- Fetch external resources (optional)
License
MIT License (MIT)