brianzinn Posted February 20, 2018 Share Posted February 20, 2018 The experience when controller 3d model is not available (ie: offline or slow to load) does not seem to degrade gracefully and offer a workable controller (ie: forward ray with no model and working buttons). Maybe an option like "allowControllerInteractionWithoutModel" would be better, but it feels like this: https://github.com/BabylonJS/Babylon.js/blob/master/src/Gamepad/Controllers/babylon.windowsMotionController.ts#L109 should be: if (this.browserGamepad.axes) { if (this.browserGamepad.axes[2] != this.trackpad.x || this.browserGamepad.axes[3] != this.trackpad.y) { this.trackpad.x = this.browserGamepad["axes"][2]; this.trackpad.y = this.browserGamepad["axes"][3]; this.onTrackpadValuesChangedObservable.notifyObservers(this.trackpad); } // Only need to animate axes if there is a loaded mesh if (this._loadedMeshInfo) { for (let axis = 0; axis < this._mapping.axisMeshNames.length; axis++) { this.lerpAxisTransform(axis, this.browserGamepad.axes[axis]); } } } Likely something else is involved here, so need to investigate more to find the underlying cause for sure, but I was unable to demo my project offline! In the future I will set the MODEL_BASE_URL for all models and store locally. Has anybody else had trouble with VR controllers offline? A cursory look at the code seems to have fallbacks on everything... Quote Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2018 Share Posted February 20, 2018 MODEL_BASE_URL is supposed to be used for this specific case. So if this is not working I would like to get a repro as it should work Quote Link to comment Share on other sites More sharing options...
brianzinn Posted February 20, 2018 Author Share Posted February 20, 2018 The repro is just to not have a model loaded, so load this in WinMR: https://playground.babylonjs.com/#QRIN8S Quote Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2018 Share Posted February 21, 2018 Can you create an issue on the repo? Would like to track this one Quote Link to comment Share on other sites More sharing options...
brianzinn Posted February 21, 2018 Author Share Posted February 21, 2018 added an issue "VR fallback without model" - https://github.com/BabylonJS/Babylon.js/issues/3798 GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.