https://github.com/repcomm/gltf-ts
glTF parser written in TypeScript + Babel for JavaScript ES Moduels, 3d lib agnostic
https://github.com/repcomm/gltf-ts
Last synced: 7 months ago
JSON representation
glTF parser written in TypeScript + Babel for JavaScript ES Moduels, 3d lib agnostic
- Host: GitHub
- URL: https://github.com/repcomm/gltf-ts
- Owner: RepComm
- Created: 2020-07-25T11:28:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:25:12.000Z (about 3 years ago)
- Last Synced: 2025-03-23T02:44:47.432Z (10 months ago)
- Language: JavaScript
- Size: 591 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# gltf-ts

A typescript GLTF parser (set up to compile to javascript ES Modules w/ babel)
## Status
Boiler plate for API is written, but parsing is only 1/4 done
Nothing to look at yet.
## Purpose
I need to load gltf files without depending on any particular scene graph or API, soo
This setup is its own implementation of GLTF parser that tries to follow
[specification 2.0](https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md)
## Lib notes
This code tries to be non-api-locking
This lib does not:
- Use third party libs
- Use target specific file APIs (just give me data)
- Force you to use TypeScript or JavaScript (you can use either one)
- Force you to use babel (you can compile gltf.ts however you want)
I used babel to compile only because the MS ts compiler seems to suck.
Everything is done to be as mobile of an API as possible.
You should be able to use this just about anywhere with little hassle.
## API / docs
- TODO
- See [typescript example](./src/index.ts)
## Tools used
- [vscode](https://code.visualstudio.com)
- [vscode gltf ext](https://github.com/AnalyticalGraphicsInc/gltf-vscode)
- [gltf 2.0 spec](https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md)
- [babel as typescript compiler](https://babeljs.io)