Heads up! We're sunsetting this forum to streamline our community space.
join us on Discord for support, updates, and all things Snap AR! See you there!
join us on Discord for support, updates, and all things Snap AR! See you there!
Sign up for our live Camera Kit office hour on July 17 @ 9:30am (PT) / 4:30pm (GMT)
Is there a way to to detect lighting and motion
Best Answer
-
@chico Thanks for posting on the forum. Here's some insights i got from our eng team:
From app perspective they can show text or alert dialog as an instruction but there is no way to detct if user is actually following it or not.
From lens perspective, if this is a lens where they are atracking a user, you could look for the various onTrackingLost events that are applicable to your type of tracking, and if they are losing tracking x times in a short period of time then you could display a modal saying "stay still or move to well lit environment" Similarly, if you need to place a 3D model in the world you could check for valid placement option and if that doesn't happen within x seconds, display the modal.
1