Go to file
2016-07-12 15:08:20 -04:00
.idea Webstorm 2016.2 project update 2016-07-11 10:08:35 -04:00
bin Support quantize option 2016-06-24 14:04:12 -04:00
doc Updated readme 2015-10-18 23:51:01 -04:00
lib Flip uv.y 2016-06-29 11:45:22 -04:00
specs Added a unit test 2016-07-11 12:27:15 -04:00
TypeScriptDefinitions Updated project for publishing 2016-07-08 18:10:18 -04:00
.gitignore Updated project for publishing 2016-07-08 18:10:18 -04:00
.jshintrc Updated project for publishing 2016-07-08 18:10:18 -04:00
.npmignore Updated project for publishing 2016-07-08 18:10:18 -04:00
.travis.yml Updated project for publishing 2016-07-08 18:10:18 -04:00
CHANGES.md Updated project for publishing 2016-07-08 18:10:18 -04:00
gulpfile.js Updated project for publishing 2016-07-08 18:10:18 -04:00
index.js Upgrade for gltf-pipeline 2016-06-10 17:43:30 -04:00
LICENSE.md Updated project for publishing 2016-07-08 18:10:18 -04:00
package.json Update gltf-pipeline version number 2016-07-12 15:08:20 -04:00
README.md Updated readme 2016-06-23 16:29:26 -04:00

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.