Hi, as the title suggests, I’m trying to import a bunch of .gltf files but they are imported as binary files. I thought Playcanvas supported this format now. Am I wrong?
BTW these models seems to load perfectly when I view them in the placanvas viewer (PlayCanvas glTF Viewer)
Hi, I’m pretty sure the gltf files Im importing have the textures embedded. (I cant see the textures in any separate folders).
The model imports perfectly into the viewer though and all textures appear perfectly - the problem is that it doesnt import correctly into the Playcanvas editor itself. I can send you a model if required?
Yep you’re right - the PC engine definitely supports loading all types of gltf and glb with internal and external data.
However the editor’s import pipeline is completely separate from that. The import pipeline currently only supports glb files, not gltf. As I say though, we’re planning to add support in future.
Until then, there are utilities which convert between gltf and glb. Could you use that until we’ve added direct support in the editor?
Also want to mention that if your textures and data are embedded in the gltf file then they are being base64 encoded. This will result in much bigger gltf file than the equivalent glb. You should consider using glb for production if possible!