Discovered anchors are placed at (0,0,0)
Hi there, I'm trying to use MetaXR anchors for my current project. I previously used Unreal 5.1 with PCVR and I could create, save and reload anchors. I am now trying to do the same in an Unreal 5.4 standalone project. My problem is that when I save the anchor, and I reload it with its UUID, it spawns at (0,0,0). Using the logcat from Android Studio, I found out that there were two errors, one pretty seamingless : SP:AF:AnchorFramework: getAnchorUuid can't find anchor for handle 4 And the second one, which I think is the real problem : [XRCMD][failure] [XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB]: xrLocateSpace(*(XrSpace*)space, baseSpace, ToXrTime(GetTimeInSeconds()), &spaceLocation), arvr\projects\integrations\OVRPlugin\Src\Util\CompositorOpenXR.cpp:13440 (arvr\\projects\\integrations\\OVRPlugin\\Src\Util/CompositorOpenXR.h:317 My blueprint is ugly right now, but here is how I discover and save anchors :Solved1.2KViews1like2CommentsBuilding custom code upon Building Blocks
Hello Community, I want to implement my own functionalities on top of functionalities the Building Blocks are providing. How is that possible? And what is the best way? For example: I added the "Spatial Anchor Core" Building Block. Now, I want to use the method "InstantiateSpatialAnchor()" the script attached to the Building Block is providing, in a own script.313Views0likes0Commentsspatial anchor misalignment
Hello everyone, I recently created a demo of Quest 3 local space anchor using Meta XR SDK. Everything was normal when creating the space, but after turning Quest 3 off the screen for 20 minutes, when I opened the demo again, I found that there was a significant offset in the space. I tried restarting the device but it didn't work. What is this problem? Have any developers encountered it before.1.7KViews0likes2Commentsspatial anchor misalignment
Hello everyone, I recently created a demo of Quest 3 local space anchor using Meta XR SDK. Everything was normal when creating the space, but after turning Quest 3 off the screen for 20 minutes, when I opened the demo again, I found that there was a significant offset in the space. I tried restarting the device but it didn't work. What is this problem? Have any developers encountered it before.568Views0likes0CommentsSpatial Anchor Sharing using router without internet
Hello, I am currently working on a MR app using Unreal Engine 5.3.2 and we have successfully implemented spatial anchor sharing within our app for local multiplayer on an internet connection. However, for security reasons, we need our app to work without internet connection. But after many tests, we have realized that the spatial anchor sharing does not work on a router that is not connected to the internet. Spatial anchor sharing most probably uses Oculus cloud services to save the spatial anchors to be shared on the cloud. Using routers without internet is a crucial aspect of our app. Each headset connects to the router and within the app, we are still able to create and join multiplayer sessions using LAN. The fact that the spatial anchor sharing does not work in these conditions is a huge blocker for us. Do I have that right? Is there a way to bypass this requirement? If not, what can be done? Thank you in advance for the help!2.7KViews4likes6CommentsSpatial Anchor creation over link fails with Result.Failure_Unsupported
I create an Unity GameObject and then add the OVRSpatialAnchor component. When it calls CreateSpatialAnchor in its Start method, it always fails when on Oculus Link (works fine if I make an Android build) Digging into this, it is this call in OVRPlugin that fails with Result.Failure_Unsupported: OVRP_1_72_0.ovrp_CreateSpatialAnchor Are there any suggestions on what could be going wrong - this error message isn't the most helpful and I can't find documentation online about it. N.B. I've managed to get the example spatial anchors project (https://github.com/oculus-samples/Unity-SharedSpatialAnchors) working perfectly over link and creating anchors successfully with the same machine & headset so the problem must be something to do with my project's unity configuration. I can't for the life of me find the difference between the example project and my project though - OVRManager settings look identical.2.9KViews1like4CommentsHow to delete a SpatialAnchor if you forget the UUID
If a SpatialAnchor exists locally, but I don't have its UUID information on the app, is there a way to delete a SpatialAnchor whose UUID is unknown? If there is a way to simply get a list of UUIDs of SpatialAnchors in the local, I would like to know that.433Views0likes0CommentsOpenXR Spatial Anchors don't provide valid pose when sleeping then waking
I'm not sure exactly what update caused this, but it's within the last few months. The spatial anchors for my project stop getting valid poses when our Quest 3s either sleeps on their own or the power button is pressed. On wakeup, the positions and orientations don't line up where expected (it's as if we had a recenter event) and the XrSpaceLocationFlags bits are all false For example: XrSpaceLocation persistedAnchorLoc = {XR_TYPE_SPACE_LOCATION}; XrResult res = xrLocateSpace(anchor.space, m_space, predictedDisplayTime, &persistedAnchorLoc); if (res == XR_SUCCESS) { XrSpaceLocationFlags flags = persistedAnchorLoc.locationFlags; bool valid = (flags & XR_SPACE_LOCATION_ORIENTATION_VALID_BIT) != 0 && (flags & XR_SPACE_LOCATION_POSITION_VALID_BIT) != 0; bool tracked = (flags & XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT) != 0 && (flags & XR_SPACE_LOCATION_POSITION_TRACKED_BIT) != 0; bool anchorIsValid = valid && tracked; // These are both always false upon wakeup // persistedAnchorLoc.pose also appears to be incorrect // ... } I have found, however, if I add a new anchor after wakeup the old anchors start getting valid poses again. It's definitely a timing issue though too. I can't immediately generate a new anchor (the frame during the wakeup) so I end up with a really ugly hack that waits some time before generating a temporary anchor to fix the current anchors. I have tried the official samples and I found the same behavior. I could add anchors in the XrSpatialAnchor sample, sleep the headset, wakeup and find they are all missing. When I add a new anchor, all the previous anchors appear again. I'm not sure if it's relevant or not, but I do have Developer -> Boundary disabled. This is a requirement for our application since the guardian area can't grow large enough. This is all used in-house, so it's not a problem for our users.1.6KViews1like1Comment