mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
Mirror of https://github.com/CesiumGS/obj2gltf
.idea | ||
bin | ||
doc | ||
lib | ||
specs | ||
TypeScriptDefinitions | ||
.gitignore | ||
.jshintrc | ||
.npmignore | ||
.travis.yml | ||
CHANGES.md | ||
gulpfile.js | ||
index.js | ||
LICENSE.md | ||
package.json | ||
README.md |
OBJ2GLTF
Convert OBJ assets to glTF 1.0.
Getting Started
Install Node.js if you don't already have it, clone this repo, and then:
cd OBJ2GLTF
npm install
Run node bin/obj2gltf.js
and pass it the path to an OBJ file.
Usage
###Command line flags:
Flag | Description | Required |
---|---|---|
-i |
Path to the input OBJ file. | ✅ Yes |
-o |
Directory or filename for the exported glTF file. | No |
-e |
Embed glTF resources, including images, into the exported glTF file. | No, default false |
-h |
Display help | No |
###Examples:
node bin/obj2gltf.js model.obj
node bin/obj2gltf.js model.obj model.gltf
node bin/obj2gltf.js -i model.obj -o model.gltf
node bin/obj2gltf.js -i model.obj -o model.gltf -e
Contributions
Pull requests are appreciated. Please use the same Contributor License Agreement (CLA) used for Cesium.
Developed by the Cesium team.