Jump to content

VR camera height


devAxeon
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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