【问题标题】:Not getting access to Windows SpatialPerception for Immersive VR无法访问用于沉浸式 VR 的 Windows SpatialPerception
【发布时间】: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


【解决方案1】:

对于在保存空间锚点时提出的 HP Reverb 使用场景,此功能不可用。此 WorldAnchorTransferBatch API 目前仅针对 HoloLens 公开。

也就是说,Microsoft 为 LBE(基于位置的娱乐)的使用提供了具体的支持和指导。具体来说,我们已经记录了导入和导出地图的能力。 Microsoft 还提供了将配置导出到多个沉浸式耳机设备的工具。见LBE-MULTI-PLAYER SETUP

【讨论】:

  • 非常感谢您的回复!不过,我可以问一下,为什么该 API 没有针对具有内向外跟踪的 VR HMD 公开?或者一般来说,为什么内外跟踪设备没有空间感知能力?
  • 用于空间感知 Windows API 和锚点的导出,在 SpatialAnchorExporter.GetAnchorExportSufficiencyAsync API 中处理。对导出的支持早在 2016 年,当时 HoloLens 是唯一的 Windows 内向外跟踪设备。如果设备运行的是 Windows,则此 API 支持仍然仅适用于 HoloLens。您可以要求使用反馈中心应用程序将功能添加到 Windows。这是Mixed Reality feedback hub suggestions的直接链接
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-05-31
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多