Animate a 2D image in the way face mask does but without wrapping?
I am trying to make a face mask type filter that does not warp around the users head. I want to maintain the animation that the Face Mask filter applies (eyebrows, eyes, mouth and other facial deforms) and keep it bound to the head, but I want the image to remain 2D and flat. Any idea how this can be accomplished?
If I'm understanding correctly, I think you're looking for Face Image. This is a 2D image attached to the face but not actually warped by the face:
https://lensstudio.snapchat.com/guides/face/face-effects/face-image/
Travis, thanks for getting back to me. You have it half correct. Yes, I want an effect similar to face image. Currently, I can take an image of a face or drawing of one and anchor it to the users head like a 2d cardboard mask even with cutouts for eyes and mouth.
I can also use the Face Mask object or the Photo template and put the same picture or drawing of a face on top of the users head. In these modes the picture or drawing tries to wrap around the users head to give the effect of a 3d mask or face replacement.
When using Face Mask or Photo template, the 2d image not only wraps around the sides of the face but also is rigged to the users facial movements. So, after lining up all the points on the mask, the mask (picture or drawing) is distorted to look like the 2d image is blinking, moving its eyebrows, mouth, facial features, etc.
What I would like to do is have a 2d drawing or picture of a face that stays flat (does not wrap around the side of the face or head) but is still rigged to the users movements and distorts the face like in the Face Mask object but does not wrap it around.
I realize some extensive work is behind the Face Mask but is there a way using a script or something that would turn off the wrap around object function of the face mask? A number that would control or limit this "wrap" effect? Is there a mesh that can be edited to achieve this? Is there a way to manually map points to a face and then to a 2d face image and use a liquefy or distort filter animation?
Is there any way and whats the simplest way to accomplish this task?
Thanks again for the help.
Got it, understood. So this is not something you can solve just with the Face Mask or Face Image objects. We are able to generally warp the scene with the user's face. And this could include a Face Image that is attached to the face. We actually just did a Twitch stream on this topic. Basically, it uses a combination of Face Mask to build a distortion texture and then feeds that distortion texture into the Distortion post effect. The this will now distort the feed with the face. This I think could get the result you are looking for.
Check out this vid from the stream around the 10 minute mark!
https://www.twitch.tv/videos/432323573
Travis,
Thanks, that's awesome and looks very promising. Going to play around with it today. Three questions:
1. Did you share the project yet and where can I get it (or at least the depth mask)?
2. Can I use an opacity mask as a template for a depth mask?
3. As requested on your stream, can you make it a weekly thing? I would be there every week and I am sure many others would be as well. Especially if it was mentioned somewhere prominent in the support section.
1) Video and projects here (in description):
https://www.youtube.com/watch?v=daehwWYu-Us
2) Any black and white texture can be used as a depth mask
3) Appreciate the support for the stream! We're also actively working on some more tutorial videos for the community. And we'll talk about streaming more frequently. Great to know there's an audience!
Hey, did you manage to achieve this? I would like to do this also