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

editor error while importing facecap.glb (webgl_morphtargets_face example) #25230

Closed
fgerges opened this issue Jan 4, 2023 · 3 comments
Closed

Comments

@fgerges
Copy link

fgerges commented Jan 4, 2023

Description

when importing the facecap.glb file (used in webgl_morphtargets_face example) in the editor, the import is not done and you can see the following error on the browser console:

GLTFLoader.js:1215 Uncaught (in promise) Error: THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures
at GLTFTextureBasisUExtension.loadTexture (GLTFLoader.js:1215:11)
at GLTFLoader.js:2585:37
at GLTFParser._invokeOne (GLTFLoader.js:2494:19)
at GLTFParser.getDependency (GLTFLoader.js:2583:24)
at GLTFParser.assignTexture (GLTFLoader.js:3020:15)
at GLTFParser.loadMaterial (GLTFLoader.js:3216:26)
at GLTFLoader.js:2577:38
at GLTFParser._invokeOne (GLTFLoader.js:2494:19)
at GLTFParser.getDependency (GLTFLoader.js:2575:24)
at GLTFParser.loadMesh (GLTFLoader.js:3438:12)
loadTexture @ GLTFLoader.js:1215
(anonyme) @ GLTFLoader.js:2585
_invokeOne @ GLTFLoader.js:2494
[...]

Reproduction steps

  1. download facecap.glb from three.js/examples/models/gltf/
  2. go to https://threejs.org/editor/
  3. click import
  4. select facecap.glb downloaded before
  5. open the browser debug console

Code

na

Live example

na

Screenshots

No response

Version

r148

Device

Desktop

Browser

Chrome

OS

Windows

@Mugen87
Copy link
Collaborator

Mugen87 commented Jan 4, 2023

Duplicate of #22035.

@RockyKev
Copy link

RockyKev commented Feb 5, 2023

It is the same problem as #22035, but the core issue IMO is that developers re-creating this example in the docs are now stuck with not knowing how to view facecap.glb.

Maybe the solution would be to improve that example with a model developers CAN use in the https://threejs.org/editor/?

@Mugen87
Copy link
Collaborator

Mugen87 commented Feb 5, 2023

@RockyKev Actually it's more important to keep the morph target asset compressed so the example loads as fast as possible. Even if that means it can't be view in the editor right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants