aframe icon indicating copy to clipboard operation
aframe copied to clipboard

Running a-frame without internet access seems impossible

Open gertjanal opened this issue 2 years ago • 4 comments

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

gertjanal avatar Aug 30 '22 08:08 gertjanal

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.

dmarcos avatar Aug 31 '22 17:08 dmarcos

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.

Utopiah avatar Sep 16 '22 16:09 Utopiah

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.

Olm-e avatar Sep 19 '22 10:09 Olm-e

IMHO documenting this should be sufficient.

Utopiah avatar Sep 19 '22 12:09 Utopiah

Fixed by https://github.com/aframevr/aframe/pull/5118

dmarcos avatar Nov 21 '22 01:11 dmarcos