Food Deciding Lens [Question]
AnsweredHi there! I'm working on new Lens concept for school and I needed a bit of help in terms of functionality. The whole idea is to solve the process of not being able to pick what to eat when eating with someone else. (most notably significant others)
Two people would stand next to each other and the camera would focus on the face and with a split screen in the middle, the two faces would roughly line up. (seen below)
Then, once activated, illustrations of foods would cycle until the user stops the lens. The goal is to get both sides to match with the same food, almost like a puzzle piece. These illustrations would be stationary, not tracked.(seen below)
The users would keep trying until the puzzle pieces match together. Then, a small victory animation would play.
That's my concept! Basically, I'm not entirely sure that this is possible to do, and if it is, I have no idea where to start. I know how to cycle images, but I'm not sure how to script when the illustration puzzle pieces come together and the split screen tracking.
If anyone could give any sort of direction I would really appreciate it! If you need any clarification please let me know! Thanks so much for your help in advance!
To align the faces, you can probably use the "Face Texture" to get the 2 faces (use index to get the different faces). Then you mask out the left/right and display them side by side as a picture on screen.
https://lensstudio.snapchat.com/guides/face/face-effects/face-texture/
You can do the same with the food. Generate random numbers every 1/x of a secnd and replace the left/right food image based on the generated number. stop iterating when user takes a picture and see if the generated random numbers match.
Looks feasible and not too hard to do. Good luck with the project!