Importing GLB model as a single file

Hi, I’m following the sample PlayCanvas provided:
https://developer.playcanvas.com/en/tutorials/loading-gltf-glbs/

I see that there is a Helmet glb “single” binary file that can be added as an attribute.
I wanna do same but when I upload my own glb file, the program turns it to a folder with some files.

How should I use my glb single file as an attribute?

Hi @DoonDookStudio_Staff,

I think the only way currently is to change the extension of your file prior to importing it, to something PlayCanvas won’t recognize e.g. .glb1.

It will then be imported as a raw binary file, you can now use it (and if you’d like change the extension back to .glb).

image

YEEES that worked! Thank u so much @Leonidas

1 Like