question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VR - Oculus Quest 2 hand-bone orientation changes

See original GitHub issue

While working on the Oculus Quest 2, we have just found that the bone positions given by XRJoint are no longer correctly mapping to the mesh.

To Reproduce

  1. Use Oculus Quest 2
  2. Go to https://threejs.org/examples/?q=vr#webxr_vr_handinput_profiles
  3. View hands with hand tracking

Video https://user-images.githubusercontent.com/33930602/115038901-41d81b00-9ed0-11eb-8486-5de53a566b0c.mp4

Screenshot image

Expected behavior Hand models shouldn’t be warped.

Quick Fix XRHandOculusMeshModel.js

https://github.com/mrdoob/three.js/blob/f2086ff617a42a40c57977c06ab81544e9d4b648/examples/jsm/webxr/XRHandOculusMeshModel.js#L125

bone.position.copy( position.clone().multiplyScalar( 100 ) );
bone.quaternion.copy( XRJoint.quaternion );
// bone.scale.setScalar( XRJoint.jointRadius || defaultRadius );

if(this.handedness === 'left') {
	bone.rotateY(Math.PI/2);
	bone.rotateX(Math.PI);

} else {
	bone.rotateY(-Math.PI/2);
}

Platform:

  • OculusBrowser/15.1.0.2.46.283931095 SamsungBrowser/4.0 Chrome/89.0.4389.105
  • Device: [Oculus Quest 2]
  • Three.js version: [r125.2, r127]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
cabaniercommented, Apr 16, 2021

Does this code hardcode the meshes? If not, it would be better to wait for updated models.

0reactions
felixtrzcommented, May 5, 2021

The hand ray in oculus quest sometimes doesn’t point down is a known issue, it is currently emulated in a way that assumes the UI is always in front of the user (not above or below). We can definitely propose change to this, but it would not be ideal to just disable the ray while not in controller mode, as a couple of examples are actually using this ray.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Dominant Hand | Horizon
CHANGE DOMINANT HAND. On the far right of the build menu is the gear icon for the settings tab. From here you can...
Read more >
Oculus Quest 2 right thumbstick shifts orientation per 90°? No ...
The right stick is set to snap turn (should be 45 degrees) as it is default in almost every VR game. To switch...
Read more >
Distorted hands - Questions - three.js forum
Noticed yesterday that previously working hands in Oculus Quest 2 are now badly ... VR - Oculus Quest 2 hand-bone orientation changes.
Read more >
Troubleshoot Meta Quest Headsets: View and controllers ...
Move your head to your preferred position, ensuring the screen view feels natural and ... Reset your view in VR ... Oculus Quest...
Read more >
VRIK - RootMotion
In Dead and Buried 2, it was used on 6 avatars simultaneously visible on screen and running on Oculus Quest hardware. Since Final...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found