1

The model of the vive wand is an obj with an mtl. Where does a-frame get this model from? Is it loaded via internet or is the model included within the framework?

I have to know if my PC needs an internet connection to play a game with vive controls.

jellix
  • 11
  • 1

1 Answers1

1

It's loaded over the Internet. The models are hosted at https://github.com/aframevr/assets/tree/gh-pages/controllers ... accessible via https://cdn.aframe.io/<PATH_TO_FILE>.

If you check the component file, you can see the URL: https://github.com/aframevr/aframe/blob/master/src/components/vive-controls.js

var VIVE_CONTROLLER_MODEL_OBJ_URL = 'https://cdn.aframe.io/controllers/vive/vr_controller_vive.obj';
var VIVE_CONTROLLER_MODEL_OBJ_MTL = 'https://cdn.aframe.io/controllers/vive/vr_controller_vive.mtl';

The documentation mentions it as well https://aframe.io/docs/0.5.0/components/vive-controls.html#assets

Doesn't seem like an easy way to load locally, besides forking the component. You could also try methods like Service Workers to cache those assets offline.

ngokevin
  • 12,980
  • 2
  • 38
  • 84
  • Thanks, Kevin! I've downloaded the two files and changed the path to the local files. Now I can use the game offline. – jellix Mar 24 '17 at 11:32