You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the recently added usage of BitmapLoader in GLFTLoader (#19518), using handlers for specific file formats will be overwritten from the BitmapLoader.
In r117 to support basis textures for gltf files you would just need to add
var basisLoader = new BasisTextureLoader();
basisLoader.setTranscoderPath( 'js/libs/basis/' );
basisLoader.detectSupport( renderer );
THREE.DefaultLoadingManager.addHandler( /\.basis$/, basisLoader );
This is not possible anymore, since the resolve will be overwritten here:
THREE.WebGLState: TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': No function was found that matched the signature provided.
at Object.texImage2D (three.module.js:21828)
at uploadTexture (three.module.js:22749)
at setTexture2D (three.module.js:22274)
at WebGLTextures.safeSetTexture2D (three.module.js:23169)
at SingleUniform.setValueT1 [as setValue] (three.module.js:17755)
at Function.WebGLUniforms.upload (three.module.js:18260)
at setProgram (three.module.js:26406)
at WebGLRenderer.renderBufferDirect (three.module.js:25441)
at renderObject (three.module.js:25994)
at renderObjects (three.module.js:25966)
The text was updated successfully, but these errors were encountered:
JohannesDeml
changed the title
GLTFLoader tries to use ImageBitmapLoader for .basis textures
GLTFLoader ImageBitmapLoader overrides loaders for types it can't handle
Jun 25, 2020
Description of the problem
Due to the recently added usage of BitmapLoader in GLFTLoader (#19518), using handlers for specific file formats will be overwritten from the BitmapLoader.
In r117 to support basis textures for gltf files you would just need to add
This is not possible anymore, since the resolve will be overwritten here:
three.js/examples/jsm/loaders/GLTFLoader.js
Lines 2077 to 2093 in 7df06a0
I'm getting the following error:
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: