Face Replacement Question
Was looking to see if there was a way to replace faces in gifs. Here's an example below. It's close but I feel like the face texture is moves about 1 frame behind the animation and was wondering if there was a way to fix that. Was also curious if it was a best practice to have the face in the original image be in one location. Code I used to move the real persons face is below.
Hi Fuseman,
If you're seeing a delay of one frame, you can try binding to the LateUpdateEvent, instead of the UpdateEvent: https://lensstudio.snapchat.com/api/classes/LateUpdateEvent/
LateUpdate is triggered at the end of every frame update. Let me know if that works for you, or if you have any other questions!
Best,
Peter