# three-gltf-viewer
**Repository Path**: magicinn/three-gltf-viewer
## Basic Information
- **Project Name**: three-gltf-viewer
- **Description**: Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-05-31
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# glTF Viewer
Preview glTF 2.0 models in WebGL using three.js and a drag-and-drop interface.
* Web (https://gltf-viewer.donmccurdy.com/)
* Desktop apps for Windows, MacOS, and Linux1 ([download](https://github.com/donmccurdy/three-gltf-viewer/releases))
1On Linux, you may need [additional configuration](https://github.com/electron/electron/issues/17972#issuecomment-487375700) for the Electron application work correctly.

## Quickstart
### Web
```
npm install
npm run dev
```
### Desktop (Electron)
To build the desktop application, run:
```shell
# development build
npm run dev:electron
# package for release
npm run package
```
## glTF 2.0 Resources
- [THREE.GLTFLoader](https://github.com/mrdoob/three.js/blob/dev/examples/js/loaders/GLTFLoader.js)
- [glTF 2.0 Specification](https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md)
- [glTF 2.0 Sample Models](https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/)
## Known Issues
- [ ] Limited drag-and-drop support in Safari.