BattleAxeVR / OpenXR-SDK-Source

Sources for OpenXR loader, basic API layers, and example code.
https://khronos.org/openxr
Apache License 2.0
13 stars 0 forks source link

Body tracking fails over Link / AirLink with a runtime error (Quest 2 / Pro) #3

Open BattleAxeVR opened 2 years ago

BattleAxeVR commented 2 years ago

Relevant issue reported in Oculus samples repo:

https://github.com/oculus-samples/Unity-Movement/issues/2

A runtime error returned by xrLocateBodyJointsFB here when running this sample over Link / AirLink, it seems to be not supported by the Meta compositor at this time:

https://github.com/BattleAxeVR/OpenXR-SDK-Source/blob/42b78bdcb96adc27b7516b015e051d67830a6e7b/src/tests/hello_xr/openxr_program.cpp#L1432

BattleAxeVR commented 2 years ago

The runtime error happens on Quest 1 as well as Link / AirLink on Quest 2 or Pro. Quest 2 & Pro work in standalone mode.

BattleAxeVR commented 2 years ago

Fixed in latest beta oculus app build, thanks Meta! This really unblocks me to use it for waist-oriented locomotion in my game and various apps.

https://forums.oculusvr.com/t5/OpenXR-Development/New-OpenXR-Body-tracking-functionality-returns-a-runtime-error/td-p/998622#M345

https://twitter.com/BattleAxeVR/status/1595102656527491072/photo/1

BattleAxeVR commented 2 years ago

Tested to confirm it also works on Quest 1 and Pro.

BattleAxeVR commented 1 year ago

I reopened this because you can't use it on PC without being a developer which is unnecessary and unacceptable, makes it impossible to ship PC VR games that rely on it.

TheoryMystic commented 1 year ago

I reopened this because you can't use it on PC without being a developer which is unnecessary and unacceptable, makes it impossible to ship PC VR games that rely on it.

Hi BattleAxeVR, I've got the same problem that I cannot use oculus link on pc to enable meta's movement sdk. so you say that "you can't use it on PC without being a developer",how can I be a developer? or where to enable dev mode? on oculus quest2? or on oculus link app? or register on meta as a oculus developer? thanks a lot.

BattleAxeVR commented 1 year ago

I reopened this because you can't use it on PC without being a developer which is unnecessary and unacceptable, makes it impossible to ship PC VR games that rely on it.

Hi BattleAxeVR, I've got the same problem that I cannot use oculus link on pc to enable meta's movement sdk. so you say that "you can't use it on PC without being a developer",how can I be a developer? or where to enable dev mode? on oculus quest2? or on oculus link app? or register on meta as a oculus developer? thanks a lot.

This is all you need on the PC side for the body tracking, hand tracking to work over Link/AirLink through OpenXR:

image

On the Quest side, building and deploying APKs and such usually requires dev mode to be enabled on your Meta Quest mobile app, and you have to allow untrusted sources in the headset somewhere too. Then in Apps -> Unknown sources you'll see the app show up after pushing it using Android Studio or SideQuest or ADB commands.

Good luck! This demo works both on PC over Link/AirLink (with developer features turned on), but NOT through SteamVR. Also make sure your current OpenXR runtime is the Oculus one.

image

BattleAxeVR commented 1 year ago

To enable that dev feature may require a Meta developer account, I can't remember but I think it does. Which sucks from a user standpoint, no doubt. But it's free, even though it requires a few minutes of extra setup time that most people probably would rather avoid. Still, it's worth it to be able to use all the features on your headset. This is fine for native PC OpenXR apps like this one, but for Unity, you can only use the developer mode features here in non-shipping builds, so that's an extra blocker that gets in the way.

TheoryMystic commented 1 year ago

@BattleAxeVR Thanks a lot for your reply! I use it on Unreal and test that on android shpping version with dev mode open and it work's fine. now I will try it on pc. I'd agree that it's sucks from a user standpoint. Mabe Meta just do not wan't people use PCVR.

TheoryMystic commented 1 year ago

.