Jump to content

VR offline


brianzinn
 Share

Recommended Posts

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...

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...