Lens game "Tik Tok"
Hi,
I would like to know if it's possible to make this type of lens in Snapchat. It's a game find on Tik Tok.
Thanks
https://www.youtube.com/watch?v=z1bNLNIPMLM&feature=youtu.be
Hi,
I would like to know if it's possible to make this type of lens in Snapchat. It's a game find on Tik Tok.
Thanks
https://www.youtube.com/watch?v=z1bNLNIPMLM&feature=youtu.be
What system are you using?
Have you downloaded the latest version of Lens Studio?
Is this issue causing Lens Studio to crash?
Version
Graphics
Attach a screenshot of the issue:
Name:
Email:
What is this most relevant to?
Please enter a brief description of your issue:
Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.
Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!
Minimum Requirements
Operating System: Windows 10 (64 bit); MacOS 10.11+
Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher
Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.
Happy creating!
Somewhat possible, but not entirely.
You can use the skeletal tracking: https://lensstudio.snapchat.com/templates/object/skeletal/
which will track the arms and head but it doesn't track legs.
Personally would probably detect the position by checking the position of the tracking points on the user against targets displayed on screen to the user.
I believe object tracking is already giving screen position and not world position so you can simply just compare the distance between the vectors.
Hi, Laurent
Definitely this is possible, I've been playing with this concept some time ago. I can share some stuff with you
So first I started with adding some helpers
I defined a Bone as a combination of three Skeletal Tracking Points - parent, start and end point. Very similar to this forum post.
Then I represented a Skeleton class which is basically a list of bones
it has a couple of methods for adding bones and debug
Also it has a getPose method - that gives you all bone data in specific format
And also a method that checks if pose is matching with given threshold.
Great! Next we have to create some poses.
In order to do this I created a bunch of photos of myself and loaded them to the preview panel of the Lens Studio
Also I created a helper, that outputs current pose in required format to the logger.
It outputs something like this. The pose is output as a string version of a JSOn format.
Then I collected like 10 of different poses, added them as a list of strings to the PoseManager script
and created a textures for them to display (sorry for my drawing skills ;) )
I will not get deeper into details of my gameplay but basically if gives you a couple seconds to fit the given pose. It compares the directions of upper-body tracking points with the current pose and reacts on the result.
I added behavior script that sends custom trigger to start the game when recording started. For debugging purposes in studio you can change event type to touch
You can find my project here, it is not optimal, just a draft. Please extend it to fulfill your needs
Let me know if there are any questions !
Best
Olha
Apoc and Olha thanks you very much for your help !
I will try to understand everything ... once again thanks for your support