mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-04-23 06:09:57 +08:00
993 B
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.