aframe
aframe copied to clipboard
Running a-frame without internet access seems impossible
Description: For a stand-alone setup, I used a laptop hosting an a-frame webpage and an Oculus Quest. The loading of the page takes ages when no (real) internet is available. It occurred to me that for a-text elements, fonts are being downloaded from the web. Also the oculus controller models don't load when no internet is available.
I think a better way of hosting these can be found, or a way to run a-frame without internet should be documented
- A-Frame Version: Not sure, the version that was available in July 2022
- Platform / Device: Oculus Quest (with Firefox Reality Browser or Wolvic Reality Browser)
- Reproducible Code Snippet or URL:
https://cdn.aframe.io/fonts/Roboto-msdf.json
For text you could point the text component to an URL where you host fonts locally.
For the controllers the URL of the built-in models is not currently exposed in the component schema.
If you're offline I'm assuming you are not pulling A-Frame from the CDN but serving your own. You could create custom builds, modify the base URL from oculus-touch-controls and serve the models locally.
FWIW as I need an offline session few weeks ago I updated the URL from the build. Not clean but worked for both text and controllers.
It would be also interesting to have generic self-contained builds so when having the a-frame js locally hosted it does not serve user data (IP, else) to third parties, in order to be compliant with GDPR and similar privacy laws.
IMHO documenting this should be sufficient.
Fixed by https://github.com/aframevr/aframe/pull/5118