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

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

Awesome Lists containing this project

README

          

# gltf-ts

![img](./example.png)

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)