MackeyK24 Posted June 27, 2018 Share Posted June 27, 2018 Yo @davrous ... Again bro thanks for the break down on WebVR. As you seen before i have the VRExperienceHelper support right on the Camara Rig for the toolkit... Everything works so good... Occulus Go with controller work great, looks very nice in VR... Teleportation work great... I have only one issue with the Gamepad usage when in NON-VR mode. Once you call scene.createDefaultVRExperience() the VRExperienceHelper TAKES CONTROL of the gamepad even though NOT in VR Mode.... I have not pressed the enter VR Button. And if i try use gamepad to turn or use the right stick it give an error about no property 'x' for a Quaternion Rotation: If i dont have the VRExperienceHelper created, it works fine... So the VRExperienceHelper must be using the gamepad input even though NOT in VR Mode. My hope as to setup game as regular scene using my First Person Camera Movement (which works fine until i create the VRExperienceHelper) but have the OPTION of going into VR Mode by pressing the VR Button. But when the VRExperienceHelper is created, the gamepad no long responds correctly to my input. Can we put some kind of flag or something so when NOT in VR mode DONT do anything with gamepad input so i can still use the gamepad like normal when NOT in VR Mode ??? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 27, 2018 Share Posted June 27, 2018 Can you repro easily in the PG? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted June 27, 2018 Share Posted June 27, 2018 13 hours ago, MackeyK24 said: Can we put some kind of flag or something so when NOT in VR mode DONT do anything with gamepad input so i can still use the gamepad like normal when NOT in VR Mode ??? I don't think it's doing a lot extra with that controller: https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/VR/babylon.vrExperienceHelper.ts#L1057 I don't have a controller. It's not a solution, but did you try to disable interactions/teleportation to see if that was it? I don't see the cause from that stack trace... Quote Link to comment Share on other sites More sharing options...
Guest Posted June 27, 2018 Share Posted June 27, 2018 pinging @davrous Quote Link to comment Share on other sites More sharing options...
MackeyK24 Posted June 28, 2018 Author Share Posted June 28, 2018 Yo @davrous ... Its the enable teleportation... If you enableTeleportation while playing the game in NON-VR MODE (waiting for VR Button to be pressed) it gets the error above i move game joysticks... Once you go into VR mode it works great... So we must be "handing gamepad input" in the VRExperienceHelper class EVEN when in NON-VR mode... I thinnk thats whats going on here Quote Link to comment Share on other sites More sharing options...
MackeyK24 Posted June 28, 2018 Author Share Posted June 28, 2018 Also... it says something about the Animation... So it must be trying to play the webvr controller animation that does not exist Quote Link to comment Share on other sites More sharing options...
davrous Posted June 28, 2018 Share Posted June 28, 2018 Interesting. It's probably a use case I've missed. I'll check that soon. Before creating the VRHelper, did you use a Universal Camera or a Gamepad Camera? Quote Link to comment Share on other sites More sharing options...
MackeyK24 Posted June 28, 2018 Author Share Posted June 28, 2018 A universal... but even if you don’t attachControl ... with any camera ... if you enable teleportation, while waiting for VR Button press and hit the right game pad joystick which is used for rotation... it gives that error... if that helps any davrous 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.