I´m trying to develop a simple Augmented Reality experience overlaying an image over a tracked image. I'm using `ARImageTrackingConfiguration` and inside the `renderer` method I have the following:
let referenceImage = imageAnchor.referenceImage;
let image = UIImage(named: "art.scnassets/2.jpg")
let planeNode = SCNNode(geometry: SCNPlane(width: referenceImage.physicalSize.width,height: referenceImage.physicalSize.height))
planeNode.geometry?.firstMaterial?.diffuse.contents = image
planeNode.eulerAngles.x = -.pi / 2
// Add the plane visualization to the scene.
The tracking is performing well but the overlay image is suffering the flash effect you see on this [video]
How could I avoid this effect?
It looks like you are replacing the plane for this tracked image over and over. Check to make sure you are only adding the SCNPlane into your scene one time.