draco/docs/guides/GLTF.md
2018-08-20 19:06:29 -07:00

993 B

glTF

Using glTF with Draco.

Encode Draco glTF Using gltf-pipeline

Prerequisites

Install node.js 6.0 or greater. See the node.js downloads for details.

Installing

Clone this forked repository of gltf-pipeline using this command line:

git clone git@github.com:FrankGalligan/gltf-pipeline.git
cd gltf-pipeline

Note that we strongly recommend [using SSH] with GitHub, not HTTPS.

Check out the Draco compression extension branch.

git checkout -b draco_compression_extension origin/draco_compression_extension

Install all the dependencies.

npm install

Encode Draco glTF

Encode the Draco glTF using default settings.

node ./bin/gltf-pipeline.js -i <in>.gltf -d -s -o <out>.gltf

The encoded glTF data will be written to the output folder.

Render Draco glTF Using three-gltf-viewer