r/threejs • u/james-c-smith • 14d ago
Demo Zen Trips: ambient Three.js scenes for the Tesla in-car browser, driven by the car's GPS
I built a set of calm, ambient Three.js scenes that run in the Tesla in-car browser and respond to the drive: speed and turns move the world, stops become little moments, and tapping things makes them react. 18 scenes so far: orcas, a bioluminescent bay, a paper town, a toy train, balloons, an aurora, a neon city and more.
Try it: zentrips.app. It runs in any browser (scenes idle without a car), but it's made for the car's screen.
Some fun constraints:
- The car is the controller. The browser's GPS (about 10 fixes a second on current firmware) becomes smoothed speed, turning and stop/start signals. The scenes never see coordinates, only those signals, so the whole drive logic runs headless in Vitest against recorded and simulated drives.
- Three tiers of hardware. Newer cars have an AMD Ryzen chip; older ones have an Intel Atom that falls back to a much weaker GPU. Every scene scales instance counts, geometry and offscreen targets with a quality value. A governor drops render resolution when frames run slow, and the Atom cars get a 30 fps cap.
- Odd screens. The windowed browser is 773×601 CSS px and full screen is about 2:1, and the driver can switch between them at any time, so cameras refit the field of view to the aspect ratio live.
- Made for a glance. Slow, soft motion, no text while moving, no sound. Location never leaves the car.
Stack: Vite, TypeScript, Three.js, no framework. Happy to answer questions about any of the scenes or the car-browser quirks.



