【发布时间】:2019-10-08 10:58:05
【问题描述】:
我正在 Unity 中为基于 UWP 构建的新 HP Reverb 进行开发。我想使用 Azure 空间锚在计算机之间共享这些锚。
由于 HP Reverb 是 InsideOut 跟踪耳机,因此 Spatial Anchors 工作正常,但我无法访问 SpatialAnchorExporter。使用 Azure Example Project 从 Unity 连接到云会给我一个 Access denied to spatial anchor exporter. 错误。
在“功能”中我启用了 SpatialPerception,我在 Unity 和 VS2019 中检查了它。
特别是以下几行告诉我我无权访问:
Windows.Perception.Spatial.SpatialPerceptionAccessStatus accessStatus =
await Windows.Perception.Spatial.SpatialAnchorExporter.RequestAccessAsync();
在没有 Azure 的情况下尝试做同样的事情会给我或多或少相同的错误,UnityEngine.XR.WSA.Sharing.WorldAnchorTransferBatch.ExportAsync() 返回:
SpatialAnchorTransferManager denied access to WorldAnchor serialization
UnityEngine.XR.WSA.Sharing.WorldAnchorTransferBatch:ExportAsync_Internal(WorldAnchorTransferBatch,
SerializationDataAvailableDelegate, SerializationCompleteDelegate)
UnityEngine.XR.WSA.Sharing.WorldAnchorTransferBatch:ExportAsync(WorldAnchorTransferBatch,
SerializationDataAvailableDelegate, SerializationCompleteDelegate)
【问题讨论】:
-
我注意到您在 GitHub(github.com/microsoft/MixedRealityToolkit-Unity/issues/6210) 上发布了相同的问题,并且 PG 认为该设备可能不支持此功能。由于这是一个 Unity API,我建议您将此作为问题提交给 Unity Communtiy。他们可能会更快地找到解决方案或了解问题所在。
-
Q Unity Forums 那里也问过。混响与 HoloLens 的跟踪基本相同,据我所知,Azure Spatial Anchors 之前已与沉浸式耳机一起使用......
-
另外:Windows.Perception.Spatial.SpatialAnchorExporter.RequestAccessAsync() 是 UWP Api 的一部分,统一的 XR.WSA 命名空间只是链接在那里 afaik
标签: azure unity3d uwp windows-mixed-reality azure-spatial-anchors