Holopane

Turning Any Screen Into a Window Into 3D

Holopane demo: a 3D dining room seen through a laptop screen as if it were a window.
Type

Personal project, open source

Role

Product Manager and UX Designer- Built with AI coding assistance from Claude.

Timeline

<1 Week

Tools

Google MediaPipe Face Landmarker (on-device), Three.js, JavaScript, Vite, GitHub Actions and GitHub Pages

Overview

Holopane uses a laptop or phone’s front camera to find where your eyes are, then redraws a 3D scene from exactly that viewpoint. Move your head and objects seem to sit behind the glass or float in front of it, like looking through a window.

It runs in the browser on laptops, desktops, iPhone and Android, with no app, extra hardware, backend or API keys. It’s also a reusable library: developers can add it to their own Three.js scene, or any WebGL engine, in a few lines of code.

The Problem

Head-tracking based perspective has been around since Johnny Lee’s 2007 Wii Remote Demo, but it stayed a tech demo because it needed specialized hardware.

I wanted to see whether on-device AI head tracking in an ordinary browser could make the effect something anyone can use on any screen, with no extra hardware/wearables, and enable developers to easily drop it into their own projects.

Key Decisions

  • Privacy by design. Camera frames are processed on the device and never uploaded. The site’s security policy blocks every connection to outside servers, including the face-tracking library’s usage metrics, so anyone can verify it in their browser.
  • Perception over physics. Exact physics made the back of a room seem to stretch away when you lean in, so forward and back movement is damped. Leaning in now reads as getting closer.
  • Comfort from user testing. Tracking jitter made the effect uncomfortable to watch, so I added glitch rejection, adaptive smoothing and short-range prediction, plus a Comfort panel with Steadiness and Depth controls. In simulation, this cut shimmer while holding still by about 80 times.
  • Sit anywhere. Wherever you are when tracking starts counts as straight on, so it works from a couch or at an angle, as long as your head is within the camera frame.
  • Works with any 3D model or scene. Drop in a model from Sketchfab and it frames itself, telling rooms from objects and handling animated characters and sky domes.
  • Built for touch interactions and tilt/gyroscope controls on desktop and mobile.

Results

  • Face tracking averages under 20 ms per frame on a MacBook and iPhone 13 Pro or above, with about 20 to 25 ms of tracking latency.
  • Live demo on GitHub Pages and an MIT-licensed library on GitHub, with unit tests for the tracking, projection and smoothing math.

<20 ms

Per-frame tracking

~80x

Less shimmer in simulation

<1 week

Idea to release

Why It Matters

On-device AI makes spatial experiences possible on screens people already own. The same eye-position tracking applies to 3D product viewers, games, video calls and AR/XR prototyping.

Inspired by Johnny Lee’s 2007 head-tracking demo. Projection math after Robert Kooima. Demo scenes: “Modern Dining Room” by dylanheyes and “Whale of the veil” by artikora, both CC BY 4.0 via Sketchfab.