GLB models not loading from my server, loading fine from Sketchfab #3222
-
Hi there. When I try to place a GLB model in Spoke from a url on my server, it says "Error loading model". The exact same model loads perfectly from Sketchfab though. Also, images and sounds load perfectly from the same directory on my server, only the GLB models cause loading error from my server. Any assistance in figuring this out most appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
A few questions for us to help pinpoint what's going wrong:
|
Beta Was this translation helpful? Give feedback.
-
@robin-k-wilson thanks very much for following up, I appreciate your time. I'll go backwards through your questions. For context, the exact same GLB model when uploaded to Sketchfab loads into Spoke no problems.
|
Beta Was this translation helpful? Give feedback.
-
It's likely a CORS error since your website isn't explicitly approved by hubs.mozilla.com. On your HC deployment, you can approve your website url in the CORS settings. Alternatively, you can upload the model to Spoke before adding it to a scene so the model gets downloaded through the proxy and then is hosted by hubs.mozilla.com. This is the preferred method. Changing CORS settings for Hubs Cloud: #2890 |
Beta Was this translation helpful? Give feedback.
It's likely a CORS error since your website isn't explicitly approved by hubs.mozilla.com. On your HC deployment, you can approve your website url in the CORS settings.
Alternatively, you can upload the model to Spoke before adding it to a scene so the model gets downloaded through the proxy and then is hosted by hubs.mozilla.com. This is the preferred method.
Changing CORS settings for Hubs Cloud: #2890