Hubs-Foundation / Spoke

Easily create custom 3D environments
Other
654 stars 257 forks source link

Gltf models from external url not loading/visible anymore in Spoke #760

Open smeybi opened 5 years ago

smeybi commented 5 years ago

In new or exist projects, loading gltf/glb model from a external url not working anymore. The models are not visible in the scene. In the published hubs(exists projects), the models are visible.

External Url is meant, if the model hosted on own server. Load from Sketchfab, Google Poly or own assets working fine. Only self hosted model does not work anymore.

misslivirose commented 5 years ago

Hey @smeybi, do you have any additional information about how you're hosting models or where? I'm not able to reproduce with the following steps:

  1. Upload a glTF model to Glitch assets
  2. Copy the link
  3. Add a Model asset in Spoke from the 'Elements' panel
  4. Paste the URL into the 'URL' property, replacing the Sketchfab duck model url

The scale was still quite small (the duck comes in at (.1, .1, .1) but after adjusting the size, the model was visible in Spoke.

smeybi commented 5 years ago

It has always worked in different projects. The hubs are working (here with the same obj): https://hubs.mozilla.com/KpaXBcJ/sromline-meeting-house

Here the same obj for test: https://srom.ch/test/hubs/test_room.glb

But in Spoke they do not appear anymore and you can not loading new.

My Assets, Sketchfab... all working well, only the selfhosted objects no longer work.

misslivirose commented 5 years ago

Thanks for the extra information! I'm able to reproduce this now.

It seems like Spoke and Hubs might be fetching this differently - when I upload the .glb to a different server, it works in Spoke fine, so it's not an issue with the asset or that they're hosted generally, it seems like it's something specific to the hosting configuration that Spoke can't parse but Hubs does. Spoke's networking gets a 404 when trying to access the srom.ch/test/hubs/test_room model.

smeybi commented 5 years ago

Thanks for testing it. Is there maybe a restriction for Europe? I have tested from different Websites on the same webserver and i have testet from other 2 different webserver (Hostings). Nowhere does it work. The webserver/hostings are in Germany and Switzerland and well-known hosting companies and there are general accounts, no specials configurations.

robertlong commented 5 years ago

Hmm, @gfodor or @netpro2k do either of you have any ideas of what's going on? Reticulum is returning a 404.

It could be the mime type. Its response type is octet-stream instead of model/gltf-binary.

Also that model doesn't load for me in Hubs. I'm seeing the same 404 there.