For the attached file using KHR_texture_basisu, textures 1-3 are already power-of-two dimensions. Textures 4-6 are NPOT, and are resized by toktx. The dimensions of the mipmaps generated by toktx are below:
For some reason, this model is rendering correctly in three.js, but displays black surfaces for textures 4-6 in babylon.js. Because all final textures have power-of-two dimensions, I don't think this is a WebGL compatibility issue. It may be related to textures 4-6 having non-square dimensions? Or something unexpected in the generated KTX2 file?
For the attached file using
KHR_texture_basisu
, textures 1-3 are already power-of-two dimensions. Textures 4-6 are NPOT, and are resized bytoktx
. The dimensions of the mipmaps generated bytoktx
are below:For some reason, this model is rendering correctly in three.js, but displays black surfaces for textures 4-6 in babylon.js. Because all final textures have power-of-two dimensions, I don't think this is a WebGL compatibility issue. It may be related to textures 4-6 having non-square dimensions? Or something unexpected in the generated KTX2 file?
Further context in https://github.com/donmccurdy/glTF-Transform/issues/144 and https://github.com/KhronosGroup/KTX-Software/issues/345.
Repro
Archive.zip
Screenshots
See above.
Desktop (please complete the following information):