Jump to content

VR interactions in cubemaps


devAxeon
 Share

Recommended Posts

Hi everyone !

I'm trying to move between two cubemaps with an HTC VIVE.

There's two interactions avaibles:

  • Click with the controller on a plane.
  • Use the gaze tracker on this same plane.

This two cases works perfectly, but:

  • Controller's ray is blocked by the cube (even with isBlocker = false).
  • gazeTrackerMesh is not visible on my plane.

Here is a PG: https://playground.babylonjs.com/index.html#M9YVIX

Link to comment
Share on other sites

Hey, take a look at this playground: https://playground.babylonjs.com/index.html#M9YVIX#2 (Is this behavior what you expect?)

setting mesh.isPickable = false will make the rays not be blocked by the skybox's cube but you wont be able to see through the cube to see the rays hitting the plane, so I made the skybox much larger to avoid this

The gazeTracker was not visible because the plane rendering group id was different then the gazerMeshes render group id, so I think the plane was being rendered on top of the gazer mesh, removing the setting of group id makes the gazer visible again

Let me know if these solutions are not what you are looking for.

Thanks.

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