World Origin Rebase with local anchors by the Set AR World Origin Location and Rotation function

grimsk 26 Reputation points
2022-11-25T00:39:24.693+00:00

I used the Set AR World origin Location and Rotation function to reset the origin to the anchor position,
but the origin does not change, but instead the anchor comes to the origin and sticks to it.
Also, all anchors around the anchor move together around the origin.
The anchor used is a local space anchor. (not azure)
(https://learn.microsoft.com/en-us/windows/mixed-reality/develop/unreal/unreal-spatial-anchors?tabs=426) Worked in Unreal Engine, Holographic window remote play on HoloLens devices Deployed.
Please refer to the code in the attached two pictures in order!
In the drive below, the situation of the problem are recorded in the video
https://drive.google.com/file/d/1PB62dni11jIPm9I9R6zyWrL76NPATWRF/view?usp=sharing
![264065-%E1%84%8B%E1%85%A2%E1%86%BC%E1%84%8F%E1%85%A5-%E1%84%8C%E1%85%B5%E1%86%AF%E1%84%86%E1%85%AE%E1%86%AB-%E1%84%8F%E1%85%A9%E1%84%83%E1%85%B31.png][1]
264101-%E1%84%8B%E1%85%A2%E1%86%BC%E1%84%8F%E1%85%A5-%E1%84%8C%E1%85%B5%E1%86%AF%E1%84%86%E1%85%AE%E1%86%AB-%E1%84%8F%E1%85%A9%E1%84%83%E1%85%B32.png
[1]: /api/attachments/264065-앵커-질문-코드1.png?platform=QnA

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
390 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,086 Reputation points Microsoft Vendor
    2022-12-06T02:45:01.293+00:00

    Hello, Welcome to Microsoft Q&A,

    The issue seems to be that the Open XR plugin in the Unreal engine does not implement SetARWorldOriginLocationAndRotation correctly. Please refer to the description and workaround in SetARWorldOriginLocationandRotation() Not working as expected · Issue #19 · microsoft/MixedRealityToolkit-Unreal · GitHub.

    ----
    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.