Jump to content

Getting exception on onControllerMeshLoadedObservable callback on Firefox


HoloLite
 Share

Recommended Posts

I am getting this exception when I click the trigger button on the Firefox/Vive/Steam platform.

Note that this works fine on same machine with Supermedium browser (Supermedium/Vive/Steam stack). And certainly runs fine with Edge/WinMR hmd.

The impacted code snippet follows:

 this._vrHelper.onControllerMeshLoadedObservable.add((c: BABYLON.WebVRController, eventState: BABYLON.EventState) => {
                console.log('>>>> onControllerMeshLoadedObservable');
                let controller = <BABYLON.WindowsMotionController>c;

                controller.onMenuButtonStateChangedObservable.add((eventData: BABYLON.ExtendedGamepadButton, eventState: BABYLON.EventState) => {
                    this.menuButtonObserver(controller, eventState);
                });

                controller.onTriggerButtonStateChangedObservable.add((eventData: BABYLON.ExtendedGamepadButton, eventState: BABYLON.EventState) => {
                    this.triggerButtonObserver(controller, eventState);
                });

                controller.onTouchpadValuesChangedObservable.add((stickValue: BABYLON.StickValues, eventState: BABYLON.EventState) => {
                    this.touchpadValueObserver(stickValue, eventState);
                });

                controller.onTouchpadButtonStateChangedObservable.add((gamepadButton: BABYLON.ExtendedGamepadButton, eventState: BABYLON.EventState) => {
                    this.touchpadButtonObserver(gamepadButton, eventState);
                });

                console.log('<<<< onControllerMeshLoadedObservable');
            });

This is kinda bizarre as supermedium and firefox are supposed to be similar. Don't know if this is babylonjs issue or firefox issue, if anyone knows please let me know.

And here is the console log errors on FireFox:

error.png

error.png

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