Image Tracking & Duration Timer
- We use Lens Studio's Image Tracking component attached to the physical artwork's reference image.
- Duration Script: Script listens for
onMarkerFound and onMarkerLost events. When the marker is found, an onUpdateEvent accumulates getDeltaTime().

- If the tracking is lost before the threshold (e.g., 25 seconds), the timer resets. Once the accumulated time hits the target duration, the script fires a success trigger.
Resources
- Documentation
Web API Communication (Camera Kit)
- To communicate the successful scan from the Lens to our Next.js application, we are using Camera Kit Web SDK's API.

- Our Next.js client-side component listens for this event from the Camera Kit instance. Upon receiving the "scan complete" signal, Next.js executes the server-side action to audit the scan and update the Supabase database.
Resources
- Remote API Documentation
Tween Animations
- We use Tween Manager to handle animation and SceneObject lifecycles

- Behaviour scripts to trigger tween components

Resources
- https://www.youtube.com/watch?v=Q_yPzXRVU3I