r/threejs • u/Easy_Safety_1253 • 3d ago
Demo Web Browser Flight Sim, all ThreeJS
https://theofs.vercel.app A flight simulator. it's all three.js + WebXR, with real satellite terrain, 240 Hz physics, and real 3D cockpits you can look around in, thoghts?





2
Upvotes
1
u/plus2link 3d ago
240 Hz physics only pays off if the render loop interpolates between steps, otherwise you are simulating frames nobody sees, and in XR you are stuck at the headset's rate anyway, so a fixed 90 Hz sim with interpolation is usually the smoother choice. Satellite terrain tends to fall apart at the horizon rather than up close: sample height with a mip bias so distant ridges stop sparkling, and cap LOD edges with skirts instead of stitching them, because a one-pixel crack reads as a hole in the sky from a few km out. The cockpit is the other trap, since a 2 cm near plane and a 100 km far plane in one pass will z-fight the panel screws, so either logarithmicDepthBuffer or a separate pass for the interior with its own near and far. Are the height and imagery streamed as quadtree tiles with a resident budget, or one big texture?
1
u/Inevitable-thing-121 1d ago
Real satellite terrain plus a cockpit you can actually look around in WebXR is a great combo. Curious how you stream the terrain tiles at airliner speed: prefetch along the flight path, or a fixed radius around the plane? Near the ground on approach seems like the hardest case.