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

Broken texture after etc1s conversion #502

Closed
hybridherbst opened this issue Feb 17, 2022 · 2 comments · Fixed by #504
Closed

Broken texture after etc1s conversion #502

hybridherbst opened this issue Feb 17, 2022 · 2 comments · Fixed by #504
Labels
bug Something isn't working package:cli
Milestone

Comments

@hybridherbst
Copy link

Describe the bug
The attached model runs through gltf-transform etc1s without error, but the resulting texture is 8x0 pixels and can't be loaded anymore (throws exception in gltf.report and elsewhere).

To Reproduce
Steps to reproduce the behavior:

  1. Download TexturedCube.zip
  2. Run gltf-transform etc1s TexturedCube.glb TexturedCube.etc1s.glb
  3. Open the result in gltf.report

Expected behavior
Has same appearance as original file, does not throw exception.
Alternative: gltf-transform should log an error if this file can't be processed for some reason (but generally I think "everything should pass" in the sense of a pipeline tool/step).

Additional context
The error logged is

Error: THREE.KTX2Loader:	Invalid texture
    at a816abbe-5888-4dab-9200-d3bd76c69d3a:29:1367
    at a816abbe-5888-4dab-9200-d3bd76c69d3a:29:1887
(anonymous) @ a816abbe-5888-4dab-9200-d3bd76c69d3a:29
bundle.js:2 THREE.GLTFLoader: Couldn't load texture blob:https://gltf.report/7406afd6-8a1b-48ad-88ed-fba2ea534bf9
@donmccurdy
Copy link
Owner

Likely same root cause as #503 (comment) – thanks!

@donmccurdy
Copy link
Owner

To be fixed in #504.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package:cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants