Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obj2gltf convert error #44

Closed
haharwj opened this issue Feb 16, 2017 · 3 comments
Closed

obj2gltf convert error #44

haharwj opened this issue Feb 16, 2017 · 3 comments

Comments

@haharwj
Copy link

haharwj commented Feb 16, 2017

convert error:mime must be a string , what this mean :

E:\work\obj2gltf-master\bin>node obj2gltf.js -i gugong/gugong.obj -o gugong/gugong.gltf -s
Error: mime must be a string
at Jimp.throwError (E:\work\obj2gltf-master\node_modules\jimp\index.js:82:43)
at new Jimp (E:\work\obj2gltf-master\node_modules\jimp\index.js:212:31)
at E:\work\obj2gltf-master\node_modules\jimp\index.js:237:23
at Function.Jimp.read (E:\work\obj2gltf-master\node_modules\jimp\index.js:229:19)
at generateJimpImage (E:\work\obj2gltf-master\node_modules\gltf-pipeline\lib\loadGltfUris.js:151:17)
at loadURI (E:\work\obj2gltf-master\node_modules\gltf-pipeline\lib\loadGltfUris.js:79:39)
at loadGltfUris (E:\work\obj2gltf-master\node_modules\gltf-pipeline\lib\loadGltfUris.js:36:9)
at Function.Pipeline.processJSONToDisk (E:\work\obj2gltf-master\node_modules\gltf-pipeline\lib\Pipeline.js:192:12)
at E:\work\obj2gltf-master\lib\convert.js:58:33
at tryCatcher (E:\work\obj2gltf-master\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\work\obj2gltf-master\node_modules\bluebird\js\release\promise.js:510:31)
at Promise._settlePromise (E:\work\obj2gltf-master\node_modules\bluebird\js\release\promise.js:567:18)
at Promise._settlePromise0 (E:\work\obj2gltf-master\node_modules\bluebird\js\release\promise.js:612:10)
at Promise._settlePromises (E:\work\obj2gltf-master\node_modules\bluebird\js\release\promise.js:691:18)
at Async._drainQueue (E:\work\obj2gltf-master\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (E:\work\obj2gltf-master\node_modules\bluebird\js\release\async.js:143:10)

@lilleyse
Copy link
Contributor

It looks like the gltf-pipeline (which obj2gltf uses) cannot recognize the image type for some reason. Can you post your obj file?

@lilleyse
Copy link
Contributor

Closing for now.

Once #49 is merged try it out and see if it converts successfully.

@lilleyse
Copy link
Contributor

Closing for now. If you are still having issues feel free to open a new issue and upload a sample obj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants