Downloading FBX from the server

Hello. To play, I need to download the FBX model from the server. Previously I used glb loading like this

  this.app.assets.loadFromUrl(path,'container',(a,b)=>{
        const render = b.resource.renders[0]
         this.loadBodyPath(avatarBodyId,pathBody)
            this.avatarBody.addComponent('model',{
            type:'asset',
            asset: b.resource.model
         })

for FBX, this does not work and the resource field is empty. Maybe the type of the uploaded file needs to be changed to model or binary? Are there any examples of such a download?

Hi @sergey_ch,

You can’t really load an FBX on runtime, since that filetype isn’t supported by the engine.

When you import it in the editor it gets converted to GLB, you will need to convert it to GLB on your server and load the instead.

2 Likes