Journal
Nov 9, 2026·3 min read· WebGL

Laying real pages over 3D screens

In the studio on this site you can walk up to a laptop and use what is on its screen: scroll a page, pick a project, follow a link. That page is not a texture. It is ordinary HTML sitting exactly on top of the 3D screen.

Why not render the page into a texture

Because then nothing works. No text selection, no scrolling, no links, no accessibility, and blurry type the moment the camera is not square on.

The approach

  1. Find the screen mesh in the model and take its bounding box.
  2. Every frame, project the box's eight corners through the camera into screen pixels.
  3. Take the rectangle those corners cover.
  4. Lay out the page at one fixed size (mine is 1280 × 800 for the laptop) and apply a CSS translate and scale so it fills that rectangle.

Because the page is always laid out at the same size and only scaled, nothing reflows as the camera moves.

Making it feel attached

  • Only show the page once the camera has settled square on to the screen. During the move, the model keeps a canvas texture of roughly the same picture, so the swap is hard to notice.
  • Fade in quickly, fade out instantly.
  • Turn pointer events off while it is not shown.

Where it stops working

On a phone the laptop screen is a few centimetres wide, and a 1280 px page scaled to that is unreadable. There the same content opens as a normal full-screen view instead. The illusion is worth exactly as much as the visitor can use.