Drift Lab

A Three.js sandbox: luxury cars, a Monaco circuit, and a PBR-atlas-to-3D asset pipeline. Every texture is sliced or painted from atlases generated by Codex image-gen. Serve over http (assets are sliced on a canvas). Looking for the full game? Play Apex Drift.

Showcase · drivable

Luxury Garage

Three rounded supercars (gold / red / sparkle) on a marble floor, each with a Codex-painted detail wrap. Press Drive a car and steer with WASD / arrows.

Level · full grand prix

Rainbow Road GP

A 3-lap race against 5 rival hypercars on a triple-length ribbon of light — summit climb, overpass, storm clouds that strike with lightning, asteroid squeezes, laser spinners, boost pads, live standings and a minimap. Race + WASD.

Level · full grand prix

Mars: Ares Circuit

A 3-lap race against 4 rivals on a 3.2 km figure-8 — summit ridge, viaduct flyover, canyon hairpin, dust devils and a blue Martian sunset, in the garage's lofted supercars. Track math validated by math-cli catmull-rom; boulders scattered by math-cli poisson-disk. Race + WASD.

Level · full grand prix

Saturn Ring Run

A grand prix laid in Saturn's ring plane — a neon-blue ribbon looping the planet with the B and A ring sheets stretching inside and outside the track, same rivals, hazards and HUD as Rainbow Road. Race + WASD.

Cinematic

Route 66

The three hypercars flat-out down a desert Route 66 — mesas, telephone poles, cacti and a Route 66 shield, with a chase cam. Race toggle + speedo.

Track

Monaco Circuit

A closed Catmull-Rom road built from the math level planner's 16 Monaco control points, with facade-skinned buildings. Drive-lap animation.

Study

Atlas Car

One car built by slicing a PBR atlas (albedo / normal / roughness / metalness) onto a hull, with the alloy rim sliced onto the wheels.