What I get isn't constant but its the typical position of the "face/ face mesh" on the screen. This position only adjust with movement of the face and not movement of the eyes itself. Also noticed this position also change with the position of the device.
// Here are my codes
func renderer( _ renderer: SCNSceneRenderer, didUpdate node: SCNNode, for anchor: ARAnchor) {
guard let faceAnchor = anchor as? ARFaceAnchor,
let faceGeometry = node.geometry as? ARSCNFaceGeometry else {
return
}
faceGeometry.update(from: faceAnchor.geometry)
let lookAtPointPosition = SCNVector3(faceAnchor.lookAtPoint) // also tried with LeftTransform & rightTransform
let projectionPoint = renderer.projectPoint((lookAtPointPosition))
let pointOnScreen = CGPoint(x: Double(projectionPoint.x), y: Double(projectionPoint.y))
Post
Replies
Boosts
Views
Activity
No worries, thanks anyways.
Hi, Please did anyone find the answer to this question? Determining the point on screen where user is looking at using lookAtPoint or leftEyeTransform / rightEyeTransform?