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

GLTF-GLB conversion fails when using basis texture #506

Open
ShantanuSriv opened this issue Dec 5, 2019 · 3 comments
Open

GLTF-GLB conversion fails when using basis texture #506

ShantanuSriv opened this issue Dec 5, 2019 · 3 comments

Comments

@ShantanuSriv
Copy link

I am trying to convert a GLTF file to GLB file and the GLTF file has images/uri mapped to basis format textures but while converting using gltf-pipeline

name: 'RuntimeError',
  message: 'Image data does not have valid header',
  stack:
   'Error\n    at new RuntimeError (/usr/lib/node_modules/gltf-pipeline/node_modules/cesium/Source/Core/RuntimeError.js:42:19)\n    at getImageExtension (/usr/lib/node_modules/gltf-pipeline/lib/getImageExtension.js:38:11)\n    at writeImage (/usr/lib/node_modules/gltf-pipeline/lib/writeResources.js:83:23)\n    at /usr/lib/node_modules/gltf-pipeline/lib/writeResources.js:47:9\n    at Function.ForEach.object (/usr/lib/node_modules/gltf-pipeline/lib/ForEach.js:46:27)\n    at Function.ForEach.topLevel (/usr/lib/node_modules/gltf-pipeline/lib/ForEach.js:65:20)\n    at Function.ForEach.image (/usr/lib/node_modules/gltf-pipeline/lib/ForEach.js:186:20)\n    at writeResources (/usr/lib/node_modules/gltf-pipeline/lib/writeResources.js:46:13)\n    at /usr/lib/node_modules/gltf-pipeline/lib/processGltf.js:63:16\n    at tryCatcher (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/util.js:16:23)\n    at Object.gotValue (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/reduce.js:155:18)\n    at Object.gotAccum (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/reduce.js:144:25)\n    at Object.tryCatcher (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:512:31)\n    at Promise._settlePromise (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:569:18)\n    at Promise._settlePromise0 (/usr/lib/node_modules/gltf-pipeline/node_modules/bluebird/js/release/promise.js:614:10)' }

Is it possible to create a GLB file with basis textures using gltf-pipeline?

@gabrieljbaker
Copy link

Curious about this as well!

@Squareys
Copy link
Contributor

Squareys commented Jun 15, 2020

Same here!
I think this is because gltf-pipeline only supports png or jpeg and therefore cannot handle the basis binary data or detect the format on it.

(That has been added, though: #491 )

@br-matt
Copy link

br-matt commented Jan 25, 2021

Just following up on that #491 linked. It looks like KTX2 lost the battle here: KhronosGroup/glTF#1612 and KHR_texture_basisu going to stay.

Support for this would be great!

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

4 participants