【发布时间】:2018-01-31 10:16:57
【问题描述】:
在 Youtube charnel 中,我看到许多这样的演示展示了一个使用 ARKit 的门户。实际上,我认为他们使用 Unity 来构建演示。我想使用 ARKit 和 SceneKit 来实现它。
当我设置了 scene.background.contents 属性时,相机捕获的图像无法再显示了。
if sceneView.scene.background.contents == nil {
sceneView.scene.background.contents = UIImage(named: "Media.scnassets/environment_blur.exr")!
}
在 iOS 11 中,SCNMaterial 新增了一个属性:colorBufferWriteMask,但是我不知道怎么用。 Apple 使用 colorBufferWriteMask 在其 ARKit 示例代码中实现 Planes Obscure Objects。
有人知道怎么做吗?
【问题讨论】:
标签: swift scenekit ios11 arkit