【问题标题】:How can I anchor a Reality Composer (RealityKit) scene to a detected image如何将 Reality Composer (RealityKit) 场景锚定到检测到的图像
【发布时间】:2020-01-18 20:37:15
【问题描述】:

将 RealityKit 场景锚定到图像目标

我曾尝试使用有限的文档来编写代码,但没有成功。我只能让场景锚定到水平面。

谁能推荐一些简单的代码,将在现实作曲家中制作的场景链接到图像目标?

我将如何更改/添加到下面的代码?

let arConfiguration = ARWorldTrackingConfiguration()
arConfiguration.planeDetection = .horizontal
arView.session.run(arConfiguration)

guard let anchor = try? Spinner.loadScene() else { return }
arView.scene.anchors.append(anchor)

【问题讨论】:

    标签: image anchor scene realitykit reality-composer


    【解决方案1】:

    您是否直接在 RC 中设置了图像锚点?这很简单,如果有帮助,我可以解释一下。

    我发现使用图像锚时模型会稍微漂移,希望尽快解决。

    【讨论】:

      猜你喜欢
      • 2020-10-30
      • 1970-01-01
      • 1970-01-01
      • 2021-07-31
      • 1970-01-01
      • 2019-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多