Jump to content

Teleportation not working


Jose Vicente
 Share

Recommended Posts

Hi.

I'm trying Babylon VR using an HTC Vive Pro but I'm having problems with teleportation.

First of all, teleportation is working find in babylon examples, like this one : https://www.babylonjs-playground.com/#JA1ND3#15  but is not working on my real scenario.

In my scenario, I generate dynamically a scene on the server, then this scene is loaded using Babylon.Serializer and then, upon user interaction, some meshes are added on the client, for instance a floor, which I try to use as teleportation mesh.

However, for some reason, this floor mesh seems invalid for teleportation, and I don't know why. This problem can be reproduced here  : https://www.babylonjs-playground.com/#JA1ND3#79

I'm able to rotate the scene using the controllers, but the rays never seem to intersect with the floor.

Some ideas ?

Thanks in advance.

 

 

 

Link to comment
Share on other sites

hHello,

Your dimensions are far too big. In VR, 1 is supposed to represent 1 meter. Your camera is set way too high (300). Changing it to 2 for instance will let you see the teleportation target.

The ray we're sending to do the hit testing has a maximum distance of 100. That's why, you can't touch the floor from Y=300.

Generally, you will have to scale your scene to fit the VR world. 

David

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