Getting exception on onControllerMeshLoadedObservable callback on Firefox

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:



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.