Inspiration
Most browser daily games are flat 2D grids. I wanted to push Reddit Interactive Posts (Devvit Web) to the limit with a genuine, real-time 60 FPS 3D WebGL 2.0 hover-racer that loads instantaneously with zero external CDNs, plays smoothly with keyboard or drag controls, and turns every subreddit into a daily 60-second time-attack competition.
What it does
HYPER DRIFT 3D drops every Redditor onto the exact same deterministic 3D daily track every 24 hours (00:00 UTC):
- Real-Time 3D WebGL 2.0 Racing: Pilot a sculpted swept-delta hover-jet with banking physics, pulsing twin afterburners, an orbiting 3D cyan energy shield ring, and dynamic FOV speed warp (
500+ km/h). - 10 Custom Blender 5.2 3D Models: Hover-jet, dynamic thruster flames, orbiting 3D shield ring, octagonal golden Turbo Gates, armored triple-beam crimson laser barriers, chevron launch ramps, gyro-ring crystals, stepped megacity skyscrapers, checkered Grand Prix finish gantry, and 3D spark shards.
- Tactile Arcade Mechanics: Smooth 3D ramp slope climbing + aerial launch, continuous swept collision detection (zero high-speed tunneling),
NEAR MISS! +150bonuses when grazing barriers, combo multipliers, and Shield Recharge every 3 Turbo Gates. - Reddit-Native Daily Loop: Subreddit-scoped Redis Daily Leaderboard, 7-day deterministic Daily Archive (
◀ TODAY ▶), endless Practice tracks, and 1-click spoiler-free daily telemetry sharing straight to Reddit comments (reddit.submitCommentas user).
How I built it
- 3D Pipeline (
scripts/export_3d_meshes.py→src/client/meshes3d.js): Modeled 10 beveled 3D game assets procedurally in Blender 5.2.2 LTS and exported triangulated vertices, normals, PBR colors, and emissive channels directly into a compact zero-CDN ES module. - Custom WebGL 2.0 Engine (
src/client/webgl3d.js): Hand-written GLSL vertex & fragment shaders featuring Blinn-Phong metallic specular lighting, Fresnel edge rim glow, smooth atmospheric horizon fog, procedural sunset sky + mountain skyline + pinpoint circular stars, and reflective wet-asphalt highway with live jet underglow. - Devvit Web Backend (
src/server/): Express +@devvit/web/server+ Redis sorted-set leaderboard, streaks, comment spam guard, moderator menu action, andonAppInstallauto-posting. - Automated Verification (
tests/): Automated Node test suites verifying all 10 Blender 3D meshes, 365 consecutive UTC daily tracks, and Redis streak/leaderboard logic.
Challenges
Building a zero-CDN real-time 3D renderer compliant with Devvit Web's strict iframe CSP while eliminating high-speed collision tunneling at 520+ km/h — solved via custom GLSL shaders, direct Blender mesh export, and frame-rate independent continuous swept Z-segment collision math.
Accomplishments
- Genuine 60 FPS 3D WebGL racing directly inside a Reddit Interactive Post with zero external libraries or CDNs.
- 10 bespoke Blender 5.2 3D meshes + matching Blender Cycles 3D cover render.
- 5/5 automated tests passing across 365 consecutive daily tracks and Redis backend logic.
What's next
Live ghost replay trails of the subreddit's #1 daily racer rendered directly on the 3D track, curved banked track sectors, and community-designed custom 3D daily circuits.