Can I convert gltf/glb to obj or dae?

Hi everyone

There are many tools for converting obj and dae models to gltf/glb.

But I can’t find any tool that convert gltf/glb to obj or dae.

Are there any solution?

Thanks

Chris

You can try assimp, but the glTF support is still “partial”

Hi Sean

I try to convert b3dm -> glb -> gltf -> obj.

But I met problem when converting glb to gltf using gltf-pipeline.

ERROR:

Unhandled rejection RangeError: start offset of Float32Array should be a multiple of 4

at new Float32Array (native)

at Object.ComponentDatatype.createArrayBufferView (F:\gltf-pipeline\node_modules\cesium\Source\Core\ComponentDatatype.js:296:20)

at findAccessorMinMax (F:\gltf-pipeline\lib\findAccessorMinMax.js:44:52)

at mapGeometryAttributeToPrimitive (F:\gltf-pipeline\lib\cesiumGeometryToGltfPrimitive.js:81:18)

at cesiumGeometryToGltfPrimitive (F:\gltf-pipeline\lib\cesiumGeometryToGltfPrimitive.js:93:13)

at optimizeForVertexCache (F:\gltf-pipeline\lib\optimizeForVertexCache.js:94:21)

at Function.Pipeline.processJSONWithExtras (F:\gltf-pipeline\lib\Pipeline.js:134:9)

at F:\gltf-pipeline\lib\Pipeline.js:264:29

at tryCatcher (F:\gltf-pipeline\node_modules\bluebird\js\release\util.js:16:23)

at Promise._settlePromiseFromHandler (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:512:31)

at Promise._settlePromise (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:569:18)

at Promise._settlePromise0 (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:614:10)

at Promise._settlePromises (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:693:18)

at Promise._fulfill (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:638:18)

at Promise._resolveCallback (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:432:57)

at Promise._settlePromiseFromHandler (F:\gltf-pipeline\node_modules\bluebird\js\release\promise.js:524:17)

``

And here is my glb file.

Any help appreciated

Thanks

Chris

在 2017年6月28日星期三 UTC+8下午10:35:44,Sean Lilley写道:

Tile_4.glb (76.3 KB)

I haven’t identified the cause of the bug, but if you use the -p flag while converting it will bypass the optimization stages, one of which is causing this error.

Sean is there any other tool that you are aware of which allows conversion from gltf to obj or fbx ?

You can try out assimp: https://github.com/assimp/assimp.

how? I can't find an exe or any explanation for the 80+ files

I found the download page.

Dana srijeda, 28. lipnja 2017. u 12:01:55 UTC+2, korisnik Chris Wang napisao je:

Hi everyone

There are many tools for converting obj and dae models to gltf/glb.

But I can't find any tool that convert gltf/glb to obj or dae.

Are there any solution?

Thanks

Chris

I use combinaton of Autodesk FBX Converter x64 2013 and http://52.4.31.236/convertmodel.html (obj2gltf). You can try on Windows 10, 3d Builder, open gltf file and then save to obj.

It’s 2019 now, so far I have had my best results using Blender using the GLTF addon by ksons:

https://github.com/ksons/gltf-blender-importer