Projectsjasonyue.ca
A pair of hands holding an open foldable phone whose screen shows the site's home screen

Web and 3D

jasonyue.ca

A foldable phone in the browser with a screen that's real HTML

GitHub
8weather skies behind the home screen
0JavaScript needed to read any page
4apps on the phone, each a real web page

jasonyue.ca is this site. Hands take an iPhone Duo out, unfold it, and hold it up, and its screen is the site itself, so the Projects, Blog, About, and Music apps you use are real web pages running inside a 3D scene.

How it works

The phone is three.js and Blender work, the hands come from the CC0 MakeHuman model, the desk behind them is a photo, and the screen is the site's pages drawn onto the phone. The same pages also work on their own as a plain, flat site, and each one reads as normal HTML with no JavaScript at all.

The Projects app opening over the home screen on the unfolded phone, with the Super Hexagon RL card and a pickban.gg card inside its window
The Projects app opening over the home screen, a moment after a tap on its icon.

Speed was a requirement from the start, since a 3D scene is easy to make heavy. The page watches the frame rate and steps the scene down in stages on a slow phone. The weather sky is one program on the graphics chip for all eight skies, and a change of weather only changes its settings, so nothing has to be rebuilt.

Highlights

  1. A screen made of real pagesEvery page on the phone is a plain HTML page. It also reads fine with JavaScript off and with WebGL off, so nobody needs the 3D scene to read a page.
  2. A sky that follows the visitorThe wallpaper picks one of eight skies from the visitor's local weather and blends day into night with their real sunrise and sunset. The location comes from the request, so nobody sees a permission prompt.
  3. Steps down on slow phonesWhen a device falls behind, the page draws fewer pixels, slows the sky, and simplifies the glass in steps, and it never switches to the flat site on its own.

Built with

  • Astro
  • Three.js
  • JavaScript
  • GLSL
  • Blender
  • Cloudflare Workers

Details

Started
Status
Live
License
MIT
Source
Public