Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
neonoodle's avatar
neonoodle
Explorer
4 months ago

Meta XR SDK broken between 74 - 77

It looks like the Unity play mode linking to headset is broken as of SDK 74 almost 6 months ago. I've been trying to get a new project going with all of the latest versioning - SDK 77, Unity 6000.1.13f1 and everything I've been doing is by the book from the latest documentation

I just have the camera block and interaction grab block and when I press play the screen on my oculus goes black for 2 seconds and then back to the Link environment. I've tried Unity 6000.0 and 2022 as well and same issue.

When I do a build it builds and runs fine on the headset, but I can't preview anything with the play button

After trying all of the different Unity versions, I found this thread on the Unity forum which narrowed it down to headset functionality breaking at 74, so I installed 72 and lo and behold the headset connects fine - passthrough and everything... but the interactions don't work. Hand tracking and controller tracking are broken both in editor and when I build, so using 72 is a non-starter if I can't interact with anything.

Anyone have any solutions for this? I need hand/controller tracking and passthrough as I'm making an MR project. I tried Unity's XR and while it connects to the headset and has controller tracking it doesn't have good support for quest, no passthrough and seemingly no spatial tracking.

I'm new to the Meta SDK, this is my first time using it. Last time I did VR dev I was using Steam SDK on Vive, so my knowledgebase on how to set this up from scratch is outdated. If any of you have any pointers toward where I should look for a solution for this, I'd appreciate it.

Thanks!

6 Replies

Replies have been turned off for this discussion
  • I'm using the Meta XR All-In-One Building Blocks for this, btw, as per the documentation, so in my scene I dragged in the Camera Rig, Hand and Controller Tracking, Real Hands, Grab Interaction, and Passthrough blocks. I also just tried Camera Rig on its own and it doesn't connect when I hit play in Unity.

  • So since v72 is the last version where the headset actually connects in play mode, I've rolled back to that and trying to get the controller tracking and hands to work to no avail. When I press play, I get 1000 warning messages of this:

    [OVRPlugin] [XRCMD][failure] [XR_ERROR_HANDLE_INVALID]: xrGetHandMeshFB(handTracker, &xrMesh), arvr\projects\integrations\OVRPlugin\Src\Util\CompositorOpenXR.cpp:9797 (arvr\projects\integrations\OVRPlugin\Src\Util\CompositorOpenXR.h:348)
    UnityEngine.Debug:LogWarning (object)
    OVRManager:OVRPluginLogCallback (OVRPlugin/LogLevel,intptr,int) (at ./Library/PackageCache/com.meta.xr.sdk.core@72.0.0/Scripts/OVRManager.cs:2130)
    OVRPlugin:GetMesh (OVRPlugin/MeshType,OVRPlugin/Mesh&) (at ./Library/PackageCache/com.meta.xr.sdk.core@72.0.0/Scripts/OVRPlugin.cs:9477)
    OVRMesh:Initialize (OVRMesh/MeshType) (at ./Library/PackageCache/com.meta.xr.sdk.core@72.0.0/Scripts/Util/OVRMesh.cs:140)
    OVRMesh:Awake () (at ./Library/PackageCache/com.meta.xr.sdk.core@72.0.0/Scripts/Util/OVRMesh.cs:102)

    I tried both Oculus and OpenXR plugins, and I tried using the Building Block Camera and Viertual Hands/Controller Tracking blocks, and I've also tried opening the Interactables SDK scene (ComprehensiveRigExamples) and same issue.

    I've also tried using Unity 6000.1.1f13, 6000.1, and even 2022.3.62f1

    Where do I go from here? If I use the latest 77 I can't play in editor making iteration time practically impossible with 16 minute builds to test anything, and if I use 72, I don't have interactions.

  • Hi, sorry not a solution but I'm just speaking in solidarity as I have the same issue with MetaXR plugins. You can still build projects with play mode using only OpenXR, XR Hands, XR Interaction Toolkit. My issue is that I can't get hands to render in Unity or Unreal, I think there's been an update with the Link drives that has messed with this.

    • neonoodle's avatar
      neonoodle
      Explorer

      I can't seem to get the XR Interaction Toolkit to work either when I just import it into my project and I haven't spent too much time debugging why that is - but I am having better luck with the standard MR project template in 6000.1, so I'll just continue on with that for now.

  • Anonymous's avatar
    Anonymous

    Hey neonoodle​ (and ItchyNose200​ too)—I've chatted briefly with our team about this and our engineers weren't able to reproduce the issue you're having with Unity 6000.0.50f1 + SDK v77 + OpenXR plugin. I'm not 100% sure what the issue is here but one person did suggest it might be because you haven't set up your controller profiles in the OpenXR plugin for PC/Windows (see attached images). If you're still struggling, you could zip up the project and send it to me in a DM and we can take a look?