Roadster Jump: Building a WebGPU Stunt Game Around the 2026 Tesla Roadster

By Anshul Dhawan, Product leader, 0→1 Product Builder, and game developer.

Builder · AI-native game · WebGPU & Three.js · 2026

An authoritative 120Hz driving and cold-gas thruster simulation built from scratch with Blender MCP, Three.js WebGPU, and custom TSL shaders.

When footage of the angular 2026 Tesla Roadster performing a cold-gas thruster "kickflip" — a full 360-degree longitudinal barrel roll mid-air — started circulating in mid-October, my first thought was: what would it feel like if you actually had to time that jump across a 250-meter desert canyon?

Not a cutscene. Not an animation that secretly stretches horizontal speed so you always hit the other side. A real browser game where you hold throttle up to 224 mph across a sunlit sandstone circuit, weave past monolith spires across six timed sectors, and commit to three 250-meter canyon leaps per lap. Press Space too early and your undercarriage clips the far cliff wall. Press a fraction too late and you run out of plateau during the 0.12-second pneumatic charge and drop 700 meters into the gorge.

The result is Roadster Jump, running live in the browser on Three.js WebGPU and Three.js Shading Language (TSL). Play Roadster Jump ↗ (Keyboard WASD / Arrows + Space, or touch controls on mobile).

Interactive 3D Roadster & Shader Effects Lab

Before diving into how the canyon circuit and simulation work, here is the standalone 2026 Roadster (4.4 MB GLB + custom TSL node materials) isolated from the game. Drag to orbit 360 degrees, switch camera presets, and toggle the different real-time effects and shader inspection views applied to the car during a run:

2026 Tesla Roadster — Interactive 3D Model & TSL Shader Effects Showcase

Real-time Three.js WebGPU + TSL showcase running the production 4.4 MB Roadster GLB. Toggle cold-gas thrusters, the 2.80s quintic barrel roll, 1680K brake glow, active aero, or TSL shader debug layers.

Every toggle in the viewer above runs the same TSL node graphs used in gameplay:

Earning the Landing: Physics Owns Truth

The easiest trap in building a stunt game is letting the animation cheat. If pressing Jump quietly lerps the car onto a safe landing pad, the stunt looks cool once and stops being a game on attempt two.

In Roadster Jump, one rule governs everything: horizontal travel is never fitted to the landing target.

A fixed-step 120Hz simulation (RunController) integrates ground speed, steering, lateral tire slip, and continuous swept hull collisions against the canyon rims and rock obstacles. When you press Space on an approach plateau, the car enters a 0.12s pneumatic charge squat (JUMP_CHARGE) that requires continuous ground support beneath the tires. Once committed, a deterministic 2.80s flight program evaluates quintic height and roll splines around the vehicle's measured center of mass while carrying whatever horizontal velocity you actually brought to the lip.

Technical trajectory diagram of Roadster Jump showing the 26.9m clean commit window, 250m canyon gap, 2.80-second quintic flight arc with a 360-degree longitudinal barrel roll, and the early cliff-strike versus late charge-loss failure paths.
The committed 2.80s canyon leap: horizontal travel comes strictly from launch speed and commit position — never fitted to the landing lip.

At 224 mph (100 m/s), the clean commit window before each canyon rim is just 26.9 meters wide — roughly a quarter of a second of travel time. Every clean jump is graded out of 100 based on commit centering, approach speed, lateral alignment, and touchdown stability, and single-jump runs automatically cut to a 0.4× slow-motion side-angle replay with a timeline scrubber so you can inspect the exact frame your tires cleared the cornice.

Authoring the 3D Car & Custom TSL Shaders

Rather than pulling a generic stock sports car, the 2026 Roadster was built through an AI-assisted Blender Python pipeline (build_hyperreal_roadster_2026.py + procedural 2K PBR texture generators) and calibrated to measured chassis bounds (4.49m length, 2.76m wheelbase, 1.91m width).

Polygon normals lie on curved automotive sheetmetal. Getting an angular hypercar to look convincing in golden-hour desert light inside a browser exposed an interesting rendering problem: even a dense mesh shows subtle facet banding when a low sun grazes a glossy hood or rear fender crest.

Instead of subdividing the car into millions of triangles, I moved the surface curvature into Three.js Shading Language (TSL) (shader_skills_tsl.js), compiling directly to WebGPU WGSL (with automatic WebGL2 fallback):

  1. Analytical 3D Automotive Normals & Candy Clearcoat. On painted panels, the shader computes a smooth analytical 3D normal field in local vehicle space — crowning the frunk hood, flaring the front and rear wheel arches, and inflecting cleanly across the beltline — before perturbing it with a 28× tiled micro-flake map. Over a three-stage pigment travel, a Weidlich-Wilkie layered clearcoat conserves energy (Fc + (1 - Fc) === 1.0) so bright reflections never wash the paint out to salmon-pink.
  2. World-Space Ray-Plane Reflections. Both the clearcoat and the dichroic laminated glass canopy (IOR 1.52, with derivative-antialiased fillAA ceramic frit borders and a Targa roof seam) trace reflection rays against a two-octave drifting cumulus cloud FBM dome above and the 4K cracked sandstone causeway below. When the car leaps off the cliff, the lower-hemisphere reflection transitions seamlessly from rushing road to sunlit canyon chasm.
  3. Supersonic Cold-Gas Plumes & Differential Gimballing. Cold nitrogen thrusters shouldn't look like orange campfires. Each nozzle renders a translucent view-Fresnel mixing cone around a crisp cyan-white throat core modulated by animated cubicPulse Mach shock diamonds. During the barrel roll, front/rear and left/right underbody nozzles gimbal independently to produce physically consistent roll spin-up, inverted pitch support, and spin-arrest torques.
  4. Compile-Time Specialized Post-Processing. The final frame runs through peripheral velocity motion blur (masked out of the central car silhouette so the Roadster stays razor-sharp at 224 mph), thresholded HDR bloom, optical cos⁴ vignette, photon shot-noise film grain, AgX Punchy tonemapping, exact sRGB OETF encoding, and ±1 LSB triangular-PDF dithering.
Exploded technical illustration of the 2026 Roadster WebGPU and TSL shading pipeline, showing analytical 3D body normals, Weidlich-Wilkie candy clearcoat, cold-gas Mach shock-diamond plumes, 1680K Planckian brake rotors, and the 2-MRT velocity motion blur and AgX Punchy output chain.
Inside the TSL material and post-processing graph: analytical sheetmetal normals, energy-conserving clearcoat, blackbody rotors, and compile-time specialized AgX output.

From One Jump to a Six-Sector Time-Trial Circuit

Once the single canyon leap felt tight, a natural game-design tension emerged: a straight drag strip into one jump tests reaction timing once, whereas a full circuit forces you to set up your line and speed under pressure while fatigued from the previous corner.

I expanded the desert plateau into a continuous six-sector stadium circuit suspended 700 meters above a meandering canyon river:

Top-down circuit map of the six-sector Roadster Jump canyon course showing three 250m chasm leaps, the suspended middle island, 315m semicircular turns, rock obstacle gates, and live sector split telemetry.
The six-sector sandstone circuit: 40m-wide mesa causeways, sculpted rock gates, two R=315m cliff turns, and three mandatory 250m canyon leaps per lap.

The Hard Parts: Hitting 60 FPS With 4K Assets and Zero Audio Files

Shipping hyperreal 3D in a browser tab without multi-second stalls or thermal throttling meant treating asset budgets and frame pacing as first-class engineering problems:

1. Cutting 1.46 GB of VRAM bloat. Raw procedural 4K canyon textures and high-poly Blender exports initially weighed over 317 MB on disk and ~1.7 GB uncompressed in GPU memory. Optimizing the Roadster GLB (80.9 MB → 4.4 MB, -94.5%), compressing the 27 vehicle and canyon PBR maps (236.4 MB → 29.3 MB, -87.6%), decimating distant canyon massifs (3.42M → 500k triangles, -85%), and batching the car's 99 primitives into consolidated sprung and unsprung draw buckets brought load times down to a couple of seconds.

2. Eliminating frame-1 shader compilation hitches. Nothing ruins a precision canyon jump faster than a 120 ms WGSL shader-compile stutter the first time you press Space. To prevent first-use hitches, the cold-gas thruster plumes stay mounted in the scene graph at 0.0001 scale while idle so WebGPU compiles and warms their pipelines on frame one. An adaptive DPR governor (0.75× – 1.5×) and decoupled 2-MRT post-processing keep frame times smooth while an in-game F3 bottleneck profiler tracks live 1% lows and subsystem timings (Physics, Particles, Camera, Dirty-Checked HUD, and WebGPU Render).

3. 100% synthesized WebAudio. Just like my earlier generative-video game experiments, there are zero audio files in Roadster Jump. A custom WebAudio synthesizer (CanyonAudioSynthesizer) generates a dual-harmonic sine/triangle EV motor whine pitched to ground speed, a speed-squared bandpass desert wind rush that fades out if you drop below the canyon rim, a high-Q filtered cold-gas thruster hiss coupled to nozzle thrust intensity, and musical sector-split chimes that pitch up on purple sectors.

Before-and-after WebGPU optimization chart for Roadster Jump showing GLB reduction from 80.9 MB to 4.4 MB (-94.5%), PBR textures from 236.4 MB to 29.3 MB (-87.6%, saving 1.46 GB VRAM), triangles from 3.42M to 500k (-85%), and the 16.6 ms 60 FPS frame budget breakdown.
Fitting a 4K WebGPU canyon and custom-shaded hypercar into a 16.6 ms browser frame budget.

Takeaways

Deterministic simulation makes spectacle playable. A barrel-rolling electric supercar is pure spectacle on video, but spectacle alone wears off in ten seconds. Making the commit window strict, keeping horizontal travel honest, and adding an automated 15-scenario physics verification suite turned a viral video clip into a skill loop where shaving 0.15s off Sector 4 actually feels earned.

TSL makes custom shader craft practical on the web. Writing node-based WGSL shaders in JavaScript let me solve geometry problems (like hood facet seams and ceramic glass frit edges) mathematically in the fragment shader rather than brute-forcing polygon counts — and let the exact same material graph compile cleanly into live diagnostic views in the 3D showcase above.

AI-native 3D pipelines are crossing the quality threshold. Between procedural Blender Python scripting for hard-surface automotive modeling, custom PBR map synthesis, WebGPU node shaders, and synthesized WebAudio, a solo builder can now author, optimize, and ship a self-contained 3D driving game in days — running at 60 FPS from a static URL with zero engine licensing or install friction.

More projects and writing by Anshul Dhawan