Browser FPS built in Three.js

rewind

recreate a browser fps like this with claude Fable 5.2 + Three.js.. all running in javascript in the browser the trick is building it like a real engine, one system at a time. here’s the workflow: - step 1: fable 5.2 sets up three.js + vite with pointer lock controls and a capsule player - step 2: fable 5.2 greyboxes the port in three.js: containers as instancedmesh, cranes, a warehouse - step 3: fable 5.2 lights it in three.js: low sun, cascaded shadows, hdri sky, fog - step 4: fable 5.2 adds post-processing with effectcomposer: bloom, ssao, grain - step 5: fable 5.2 loads a gltf rifle on its own viewmodel camera, with sway and recoil - step 6: fable 5.2 builds the red-dot sight in javascript: a reticle on the lens plus an fov zoom on aim - step 7: fable 5.2 writes combat in javascript: raycast hits, muzzle flash, ammo, reload, enemies in cover - step 8: fable 5.2 adds the hud and mission: relay objectives, warnings, subtitles, a pause menu who does what: > fable 5.2: every line of javascript and every shader > three.js: rendering, shadows, post-processing > gltf models: the rifle, the forklift, the crane parts > you: play it and say what feels off the “aaa look” is 80% lighting and post-processing. a low sun, real shadows and good fog make plain boxes look expensive
View original post