Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jywarren opened this issue Feb 29, 2024 · 3 comments
Labels
enhancement work that enhances an existing feature

Comments

@jywarren
Copy link

jywarren commented Feb 29, 2024

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 jywarren added the enhancement work that enhances an existing feature label Feb 29, 2024
@jywarren
Copy link
Author

jywarren commented Feb 29, 2024

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
Copy link
Contributor

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement work that enhances an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants