【发布时间】:2019-12-26 10:12:25
【问题描述】:
我想在 AR 投影时隐藏物体的背面。你看,这个物体在墙上有点加深了。我可以制作某种蒙版对象以使该对象不可见吗?
import UIKit
import RealityKit
class ViewController: UIViewController {
@IBOutlet var arView: ARView!
override func viewDidLoad() {
super.viewDidLoad()
// Load the "Box" scene from the "Experience" Reality File
let ARscene1 = try! Experience.load_1()
let ARscene2 = try! Experience.load_2()
let ARscene3 = try! Experience.load_3() //that scene, object named "mask"
// Add the box anchor to the scene
arView.scene.anchors.append(ARscene1)
arView.scene.anchors.append(ARscene2)
arView.scene.anchors.append(ARscene3)
}
}
这里你可以看到my model looks like。
【问题讨论】:
标签: swift augmented-reality arkit realitykit reality-composer