I'm working on an App with a feature that determines and marks the point a user is looking at (i.e in screen coordinates)
I have successfully set my ARKit configurations to retrieve the leftEyeTransform, rightEyeTransform and lookAtPoint. My challenge is correcting converting this data to CGPoint coordinates to present the point the user is looking at.
I have attempted using "renderer.projectPoint" to derive the screen coordinates from the leftEyeTransform, rightEyeTransform and lookAtPoint, but haven't been able to get it to work correctly.
I think I'm missing something, please any suggestions or points will be greatly appreciated.
Thank you in anticipation.
I have successfully set my ARKit configurations to retrieve the leftEyeTransform, rightEyeTransform and lookAtPoint. My challenge is correcting converting this data to CGPoint coordinates to present the point the user is looking at.
I have attempted using "renderer.projectPoint" to derive the screen coordinates from the leftEyeTransform, rightEyeTransform and lookAtPoint, but haven't been able to get it to work correctly.
I think I'm missing something, please any suggestions or points will be greatly appreciated.
Thank you in anticipation.