I'm trying to apply a CIFilter
to a specific group of vertices from the ARFaceAnchor
. I was able to access the vertices using:
let vertices = faceAnchor.geometry.vertices
let relevantVertices = [vertices[580],
vertices[1019],
vertices[1017],
vertices[660]]
But I can't understand how to use it in with a node (not sure if that's the solution) in order to keep those vertexes continuously updated with the CIFilter
as the face moves.
For example, I chose some vertexes and applied a black and white filter on the selected vertices (hard-coded) using Photoshop for demonstration. Imagine there are no lines :)
Any help would be highly appreciated!
node
on specificvertices
– StuckCIFilter
on specificvertices
that I get from the face mesh (like I showed above). So basically for exampleblur
/black & white
part of the face using thevertices
I choose. If usingnode
is the right way then I didn't find it yet haha. – Undersurface