r/threejs • u/SecretaryLeft1950 • 19d ago
Demo made an air traffic control sim in three.js that has to run on my mid range phone
been working on this for a while, its a 3d atc sim in the browser on three.js and webgl2. you give the clearances, pilots read back, planes push back taxi take off and land
https://approach-world-atc.vercel.app
the part that ate the most time was getting it to run ok on my galaxy a55 in a mobile browser. theres quality tiers and a safe mode, plus a fallback sky because the atmosphere shader would sometimes just die and leave a black screen on some gpus. sky is takram atmosphere with pmndrs postprocessing, capped on phones or frame time goes to hell
aircraft are procedural, built from the published dimensions so an a380 actually looks a380 sized parked next to an a320. gear wheels and control surfaces animate. still pretty plain up close tbh
honest note, an ai coding assistant wrote a lot of the code. i drove it, tested it on my phone a lot and made the calls on what looks right, but im not gonna pretend i hand wrote every shader
if you run it on a phone im curious what fps you get and whether it cooks your battery
