Add Support KTX Textures in GLB Exporter

As confirmed from @bghgary in this forum entry KTX textures are currently not handled by the GLB exporter.

As a result, the textures of the exported model remain black.
image

However the export seems to work if the same textures are provided in an uncompressed format as well (eg: png)
See playground example.

Repro

  • Bug repro on playground:
  • Expected result: Exported GLB is shown correctly with the original textures
  • Current result: Exported GLB is all black

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 99.0.4844.82
    … but this doesn’t matter, it happens on any device

*Ported from GitHub

I agree. GLB Exporter currently does not support ktx export. Has the team considered supporting it. @bghgary

Yes, it is in the plan of the GLB Serializer Update the team is working on. Hopefully we’ll get to it for Babylon.js 8.0 release (ETA April) but it may take longer. You can track this issue 12600. Adding also @alexchuber.

2 Likes

Well, thank you very much.