oculus-samples / Unity-StarterSamples

This repository brings multiple samples that can help you explore features and bring them into your project.
Other
142 stars 40 forks source link

Wide Motion Mode doesn't work when using OpenXR #16

Closed WikkidEdd closed 2 months ago

WikkidEdd commented 6 months ago

Description

When switching to the OpenXR Plugin wide motion mode does not work.

Using the Oculus XR Plugin wide motion mode works as expected.

Setup

Unity: 2021.3.36f1 Packages: Meta XR Core SDK v 62.0.0; OpenXR Plugin 1.10.0; XR Plugin Management 4.4.0 Device: Quest 3, OS version 63.0.0.399.366

Repro

With no other modifications to the code or project configuration:

Expected Results

Your hands should remain enabled even when the device can't see them when using Wide Motion Mode with the OpenXR plugin

Actual Results

Wide motion mode does not work when running OpenXR

Workarounds

The cause of this bug seems to be due to the missing OpenXR extension XR_META_hand_tracking_wide_motion_mode. You can create a custom OpenXR feature (as mentioned in this issue #12) which includes that extension and the call to Wide Motion Mode now works

TheJackuz commented 6 months ago

My issue is a little off topic but i think it is related. I have a Unity project that uses the Scene API: it only loads the room and then i use a raycast to check what i'm pointing. This project worked fine 2 month ago, but now the scene does not load. The only errors i get are the following:

It seems that it is a recent issue based on the reports in this GitHub. Is it going to be fixed soon?

WikkidEdd commented 6 months ago

It does sound similar in that there is a missing extension (assuming you're using the Unity OpenXR plugin and not the Oculus XR plugin).

You can try the work around here and change the extension to the one that is missing (XR_FB_spatial_entity_query) https://github.com/oculus-samples/Unity-StarterSamples/issues/12#issuecomment-2050339474

TheJackuz commented 6 months ago

I am using Oculus XR plugin. Could it be a non-related issue?

WikkidEdd commented 6 months ago

In that case it sounds unrelated. I would file a new issue for you problem

WikkidEdd commented 4 months ago

@AlexThiv great to see the fix for #15 make it into v66. Any update on when this one will be fixed? It's a similar fix of just adding an extra string to the OpenXrExtensionList.

AlexThiv commented 4 months ago

This is on track for v68.

AlexThiv commented 2 months ago

v68 has been released with the fix

WikkidEdd commented 2 months ago

Great, thanks for getting these fixed. It would be super helpful if these minor changes were also captured in the release notes.