devAxeon Posted March 22, 2018 Share Posted March 22, 2018 Hi, How about an option in vrHelper to force the height of the camera, even if isInVRMode is true ? I'm testing my scene seated, but I want to be in a stanted view inside my VR. So it will be nice if we have a forceDefaultHeight option in webVROptions, to always be standing Thank you !! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2018 Share Posted March 22, 2018 Pinging @trevordev Quote Link to comment Share on other sites More sharing options...
trevordev Posted March 22, 2018 Share Posted March 22, 2018 Which headset/browser are you using? I believe Vive or Occulus currently use actual height from the ground instead of using the default height set in the constructor when teleporting. For debugging you could hack this now by setting the hidden field _standingMatrix to null. See this playground: http://playground.babylonjs.com/#NPW39S and let me know if that doesn't work. If I understand your issue correctly and the above fixes it we could add a flag to disable using standing matrix even if its populated by the headset for your scenario. Quote Link to comment Share on other sites More sharing options...
devAxeon Posted March 23, 2018 Author Share Posted March 23, 2018 I'm using htc vive and firefox. I'm teleporting with gamepads. I can't test in PG because I can't make teleportation work inside it... I don't know why... Even with: helper.enableTeleportation({floorMeshName: ground}); But yes, you correctly understood my issue. For example: if I was developping a game like a FPS, I can play seated, but in my game, I want to be in standing view... Quote Link to comment Share on other sites More sharing options...
davrous Posted March 23, 2018 Share Posted March 23, 2018 Do the samples from my article: https://www.davrous.com/2017/12/22/babylon-js-vrexperiencehelper-create-fully-interactive-webvr-apps-in-2-lines-of-code/ work? Do you have an error logged in the console on your side when you try to enable teleportation? Quote Link to comment Share on other sites More sharing options...
devAxeon Posted March 26, 2018 Author Share Posted March 26, 2018 I tried the Mansion scene, and the teleportation doesn't work in the PG neither. But interactions with GUI and controllers works fine.. It look like it doesn't reconize the floor mesh.. Quote Link to comment Share on other sites More sharing options...
trevordev Posted March 26, 2018 Share Posted March 26, 2018 Teleportation is working for me here: http://playground.babylonjs.com/#NPW39S#2 I will also verify this works on Vive tonight. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
devAxeon Posted March 27, 2018 Author Share Posted March 27, 2018 Teleportation is working for me too on Vive with this PG ! But it doesn't work anymore if I run it again, it explain why it was not working when I have edited your first version.. So.. yes your fix work as well !! Thank you @trevordev !! GameMonetize and trevordev 2 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.