Hubs-Foundation / hubs

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
https://hubsfoundation.org
Mozilla Public License 2.0
2.13k stars 1.41k forks source link

Is there a URL from which to get a .glb or .gltf download of a scene (for archiving)? #6474

Open jywarren opened 8 months ago

jywarren commented 8 months ago

Is your feature request related to a problem? Please describe.

Archiving Hubs spaces

Describe the solution you'd like

I see it's possible to export a GLB from Spoke, and to fetch an objects.gltf from Hubs at an easy URL. Is there a similarly easy URL for accessing the scene? Like https://hubs.mozilla.com/ZbPnoCW/objects.gltf but perhaps https://hubs.mozilla.com/ZbPnoCW/scene.gltf ?

Describe alternatives you've considered

I could try opening each scene in Hubs but sometimes the .glb export shows errors. I tried auditing assets in the developer panel while loading the site, but while I can see objects.gltf I can't load the scene as a single file. How is it loaded?

Additional context Add any other context or screenshots about the feature request here.

Thank you!!!

jywarren commented 8 months ago

I can see that when you open a scene like this:

https://hubs.mozilla.com/scenes/nHr7Eki

There's an object loaded with this property:

model_url: "https://uploads-prod.reticulum.io/files/2b401e8b-bee5-4c74-af8b-9b2366cc06f3.bin"

So it looks like it's being loaded as a .bin file. What format is that? Is there an API where I can fetch that file or calculate/request it's unique ID? Thank you!

I'm an artist doing work at the Library of Congress and hoping to archive many of the Hubs-based works I've created by fetching these files and hosting them in a non-interactive static mode

keianhzo commented 8 months ago

We are working on a backup tool to backup all scenes and assets from your Hubs account, that should help with this. We will announce in the Discord channel when that's ready. Thanks for your patience.

jywarren commented 7 months ago

I wanted to note that with help, I found the scene is provided in glb format in every room, and a URL is noted in the console when it loads. However it is named with a .bin extension. When renaming it to .glb (watch for Mac extension hiding issues) it loads fine consistently for all rooms. Moz export tools will also make this available in a bulk interface.