Importing GLBs to the editor with .webp textures does not import the textures

Hi,
I want to import a .glb to the playcanvas editor that contains textures in the .webp format. But it imports only the mesh and material and not the texture (it stays white).
Opening the source .glb in the playcanvas viewer shows the correct texture, so it has to be in the file.
I exported the glb from blender and set the texture export to .webp and also tried a only converter that resaves a .glb with .jpg textures to .webp, it behaves the same.

Here is an example project: https://playcanvas.com/project/1323716/overview/webptest

Also trying to convert any texture to .webp or .avif does not work in the playcanvas editor. Directly uploading a .webp file works as expected.

Am I doing something wrong or is this a bug?

@slimbuck @KPal

Hi @caphhe ,

I can confirm you’re doing nothing wrong. We just haven’t added EXT_texture_webp support to the importer. We’ll do that soon as we can.

Thanks!

Thank you for the answer, this feature would be helpful to keep the assets organized while using webp.
I think I missunderstood the different github discussions around the topic.

And in case anyone else stumbles across the convert feature:
The converted images are created in the root of the project. I don’t think it makes much sense for them to be there, I would expect them to be created next to the original image. But it works :slight_smile:

Thanks for the info

I’ve added support for importing webp to our backend.

This update should be released within the next week or so.

3 Likes