PS D:\location-web\public\glb> gltf-pipeline -i city.glb -o modelDraco.glb -d
defaultValue has been deprecated and will be removed in Cesium 1.134. Use the nullish coalescing operator instead: Nullish coalescing operator (??) - JavaScript | MDN
defaultValue.EMPTY_OBJECT has been deprecated and will be removed in Cesium 1.134. Use Frozen.EMPTY_OBJECT instead
Error
at new RuntimeError (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\cesium\Build\CesiumUnminified\index.cjs:15966:11)
at D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\compressDracoMeshes.js:269:15
at ForEach.meshPrimitive (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\ForEach.js:239:21)
at D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\compressDracoMeshes.js:143:13
at ForEach.object (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\ForEach.js:44:21)
at ForEach.topLevel (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\ForEach.js:63:18)
at ForEach.mesh (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\ForEach.js:230:18)
at compress (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\compressDracoMeshes.js:142:11)
at D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\lib\compressDracoMeshes.js:59:14
at tryCatcher (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\Users\Administrator\AppData\Roaming\nvm\v21.0.0\node_modules\gltf-pipeline\node_modules\bluebird\js\release\async.js:102:5) {
message: ‘Error: Draco encoding failed.’
}
Hi @chenzhiljie1,
Thanks for posting a question - welcome to the Cesium community!
I tried to reproduce your error with a basic .glb
containing a cube, and the same command you ran, above. I wasn’t able to trigger any errors, so I imagine the issue could be specific to the GLTF file you’re working with. If you can share the file you’re using, I can try to reproduce it with your model and dig deeper into the issue. You may also want to try validating your GLTF file (glTF Validator) to see if the issue lies there.
Best,
Matt
I can share my GLB file with you for testing, reproduce the problem, and help me analyze what caused the error. Thank you!
It seems that files cannot be uploaded here. Please provide an email receiving address
If the data can be shared publicly, and iff it is not too large (say, not larger than ~“a few megabytes”), then you should be able to pack it into a ZIP file, and attach that ZIP file to a post here. (In any case, you can also just send it directly to mzschwartz5 via mail).