Sanjit Misra

Nodlight

experiment2026

A little character that looks 3D on a folding iPhone by tracking your head, and dances to whatever's playing.

UIKit · Metal · ARKit · ShazamKit · Vision · FLUX.1-schnell

Dependencies
0 (UIKit + Metal)
Projection tests
248 assertions
Beat tracker
62–188 BPM
Tempo table
~1.8M songs, CC0
Network
song ID only: a ShazamKit signature, one tempo shard
Beat-tracked dancing in the simulator, on test audio with a stand-in song match.
An early stage, build 6.
A painted lo-fi room, generated locally
A room plate painted locally with FLUX.1-schnell, with a depth pass for parallax.
A robot character on a neon laser stage
Laser stage, from the simulator.
The desk companion with music and timer controls
Desk companion mode.

When the fold sits open at an angle, the two halves of the screen are two windows into one room. Nodlight tracks your head with the front camera, reads the hinge angle, and redraws both halves with matching perspective, so a small character looks like it's standing on your desk. Raw Metal, no dependencies; tracking and rendering run on the device.

Here's the same trick in your browser, with your mouse standing in for your head:

Move your mouse, or drag across it on a phone. The frame stays put and the room shifts behind it, the way a real window does. Better: turn on the camera and move your head. A face detector runs in your browser and puts the eye where your eyes are; lean in and the room gets deeper. The video never leaves your device. Turn tracking off and it goes back to being a flat picture. That's the whole idea behind Nodlight, which does it with ARKit face tracking on each half of a folding phone. This one is plain canvas, plus Google's MediaPipe face detector for the camera.
Making two flat halves look like one room
  1. Front camera
  2. ARKit face pose

    where your eyes are

  3. One Euro filter

    steady when you're still, quick when you move

  4. Hinge angle

    how far the fold is open

  5. Off-axis projection

    one per screen half, one shared scene, in Metal

When tracking drops out or goes somewhere unsafe

  1. No pose, or a bad one
  2. Hold

    both halves keep the last safe view; the robot keeps dancing

Chose
Head tracking, one picture for both eyes
Over
Stereo
Because
In Arthur, Booth and Ware's study, depth judgements were wrong 3.2% of the time with head coupling alone and 14.7% with stereo alone. So the effort went into tracking quality, and lag hurts depth more than frame rate does.
  • data
  • deterministic code

It's turning into a desk companion that dances to music near you. For that I needed song tempos, so I published a public-domain table of about 1.8 million songs. It's split into 4,096 static shards, and the app downloads a whole shard, so the server never learns which song you're listening to.

Codex built the first six builds, then Claude took over, with seven research passes and an outside review that found seven issues. All of it was built on the simulator with a synthetic fold. It now works on a real iPhone Duo.