I am using the iPhone X and ARFaceKit
to capture the user\'s face. The goal is to texture the face mesh with the user\'s image.
I\'m only looking at a si
For proper UV mapping you need to use ARSCNFaceGeometry class instead of ARFaceGeometry class you're using in your code.
ARSCNFaceGeometry
is a SceneKit's representation of face topology for use with face information provided by an ARSession
. It's used for a quick visualization of face geometry using SceneKit's rendering engine.
ARSCNFaceGeometry
class is a subclass of SCNGeometry
that wraps the mesh data provided by the ARFaceGeometry
class. You can use ARSCNFaceGeometry
to quickly and easily visualize face topology and facial expressions provided by ARKit in a SceneKit view.
But ARSCNFaceGeometry
is available only in SceneKit views or renderers that use Metal. This class is not supported for OpenGL-based SceneKit rendering.