Can I convert gltf/glb to obj or dae?

8,845 views
Skip to first unread message

Chris Wang

unread,
Jun 28, 2017, 6:01:55 AM6/28/17
to cesium-dev
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

Sean Lilley

unread,
Jun 28, 2017, 10:35:44 AM6/28/17
to cesium-dev
You can try assimp, but the glTF support is still "partial"

Chris Wang

unread,
Jun 29, 2017, 7:35:30 AM6/29/17
to cesium-dev
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

Sean Lilley

unread,
Jun 29, 2017, 11:24:50 AM6/29/17
to cesium-dev
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.

gun...@jauntvr.com

unread,
Nov 2, 2017, 7:08:20 PM11/2/17
to cesium-dev
Sean is there any other tool that you are aware of which allows conversion from gltf to obj or fbx ?

Sean Lilley

unread,
Nov 6, 2017, 5:53:17 PM11/6/17
to cesium-dev
You can try out assimp: https://github.com/assimp/assimp.

griffingi...@gmail.com

unread,
Aug 22, 2018, 10:11:56 PM8/22/18
to cesium-dev
how? I can't find an exe or any explanation for the 80+ files

starbucks...@gmail.com

unread,
Aug 23, 2018, 4:01:11 PM8/23/18
to cesium-dev

hrvoje...@gmail.com

unread,
Sep 5, 2018, 10:08:31 AM9/5/18
to cesium-dev
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.

cmcpro...@gmail.com

unread,
Dec 12, 2019, 4:32:27 AM12/12/19
to cesium-dev

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

Reply all
Reply to author
Forward
0 new messages