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.42k forks source link

launch hubs with scene glb hosted externally #1938

Open blairmacintyre opened 4 years ago

blairmacintyre commented 4 years ago

Is your feature request related to a problem? Please describe. I need to host glb's on my own site, because they are generated on-the-fly. I would like to be able to specify this scene file as part of a hubs URL, without first uploading it.

Describe the solution you'd like I have a server that will generate a .glb on the fly in response to a URL request. I would like to have a link to hubs that causes hubs to fetch the .glb from this server. hubs should pay attention to the usual TTL, etc., on the response, caching appropriately.

┆Issue is synchronized with this Jira Task

gfodor commented 4 years ago

Sorry I forgot our convo in discord, but what aspects to the current "Custom Scene URL" UX are broken for this use-case? I recall there were a few.

misslivirose commented 4 years ago

I tested with the Discord bot !hubs create [glb url] [name] and it never picks up custom scenes or glb files. My guess based from previous conversations (@blairmacintyre , correct me if I'm wrong here) is that you want the API to create rooms with custom GLB files to work as they are intended to (as demonstrated by the Discord bot original behavior)

blairmacintyre commented 4 years ago

Doing it with the discord bot is one thing (a good thing). But I also want to be able to fire up a hubs room with a link to hubs.mozilla.com (and eventually a self-hosted one), that includes the URL of the glb as a parameter. That URL should be treated the way other web resources are treated (e.g., pay attention to the TTL, etc., and refetch it as appropriate when it expires, or have another optional argument to force refetch).