Can I convert gltf/glb to obj or dae?

瀏覽次數:8,847 次
跳到第一則未讀訊息

Chris Wang

未讀,
2017年6月28日 清晨6:01:552017/6/28
收件者: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

未讀,
2017年6月28日 上午10:35:442017/6/28
收件者:cesium-dev
You can try assimp, but the glTF support is still "partial"

Chris Wang

未讀,
2017年6月29日 清晨7:35:302017/6/29
收件者: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

未讀,
2017年6月29日 上午11:24:502017/6/29
收件者: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

未讀,
2017年11月2日 晚上7:08:202017/11/2
收件者:cesium-dev
Sean is there any other tool that you are aware of which allows conversion from gltf to obj or fbx ?

Sean Lilley

未讀,
2017年11月6日 下午5:53:172017/11/6
收件者:cesium-dev
You can try out assimp: https://github.com/assimp/assimp.

griffingi...@gmail.com

未讀,
2018年8月22日 晚上10:11:562018/8/22
收件者:cesium-dev
how? I can't find an exe or any explanation for the 80+ files

starbucks...@gmail.com

未讀,
2018年8月23日 下午4:01:112018/8/23
收件者:cesium-dev

hrvoje...@gmail.com

未讀,
2018年9月5日 上午10:08:312018/9/5
收件者: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

未讀,
2019年12月12日 凌晨4:32:272019/12/12
收件者:cesium-dev

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

回覆所有人
回覆作者
轉寄
0 則新訊息