-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed
Labels
Description
Loading a compressed cube KTX texture causes THREE.js to crash. The bug appears to be that CompressedImageTextures with an array as their image are still treated as individual images. This bug is related to a PR that I submitted earlier this morning.
There is an additional bug with the KTX Texture loader, in that the supplied mipmaps are loaded in the level order [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, etc] when CompressedTexture expected them to be in order [0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, etc], but I believe this is a greater issue that needs to be addressed first.
The place that THREE.js crashes is
three.js/src/renderers/webgl/WebGLTextures.js
Line 676 in 640f046
| for ( var i = 0, il = mipmaps.length; i < il; i ++ ) { |
oguzeroglu