Inspiration:

We wanted a virtual pet that lives in your actual room instead of on a screen, with nothing to install. Just open a link, and your dog or cat is on your floor, waiting to be petted.

What it does:

TAPS lets you design a dog or cat (breed, size, coat, face, tail, collar, or roll the dice) and drop it into your room through your phone's camera. It follows you, wanders around, sits and does tricks on command or by voice, and you can pet it with your real hand. Friends can join your room with a code, and your pets will walk over and meet each other.

How we built it:

It's a web app built with three.js and TypeScript. Every pet is made from simple shapes and animated in code, with no 3D model files. MediaPipe runs on the phone to track your hands and faces, so the pet can feel your petting and look you in the eye. Android uses WebXR for AR. On iPhone we wrote our own tracker from the gyroscope and the floor in the camera image, and Cloudflare Workers runs the multiplayer rooms.

Challenges we ran into:

iPhones don't give web pages real AR, so we had to track the room ourselves, and keeping the pet from drifting or lagging behind the camera image was hard. Telling a real touch from a hand just passing in front of the pet is difficult without a depth sensor. Merging several big features built in parallel, including cats, voice, multiplayer and the new tracking, also took careful untangling.

Accomplishments that we're proud of:

Everything runs in a phone browser, with no app store and no data leaving the device except voice and multiplayer updates. Petting a pet with your own hand actually works, and your hand covers the pet when it should. Pets from different phones meet up, sniff each other and do tricks together.

## What we learned:

In AR, timing matters as much as accuracy: a pose that's even a tenth of a second ahead of the camera image makes the pet look like it's floating. We also learned how far a phone's ordinary sensors and on-device vision can go, and how much smaller fixes add to a pet feeling alive.

## What's next for Totally Accurate Pet Simulator (TAPS):

More testing on real iPhones to make the tracking steadier, a permanent web address, and more animals and tricks. We'd also like pets that remember you between visits, and longer play sessions with friends.

Test out Totally Accurate Pet Simulator!

Github

Share this project:

Updates

Submission history