Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Walk the walled medieval town of Óbidos, Portugal, in the browser. Wander up Rua Direita from the main gate, climb a flight of stone steps onto the walls, follow them round, and watch the sun go down over the Várzea from the west wall. It runs on WebGPU and WGSL with a small rendering engine of its own, forked from Tidewater.
The town is built from real data:
The coordinates are metres from the centre of the walls, with x east and z south. The long straight wall on the west side faces the sunset all year.
| Key | Action |
|---|---|
| W A S D | Move |
| Mouse | Look (click to capture the mouse, Esc to release) |
| Shift | Run |
| Space | Jump |
| C | Crouch |
| F | Free camera (press again to drop to your feet where you are) |
| T | Let the day run / pause time |
| L | Flashlight |
| M | Sound on / off |
| H | Settings panel: time of day, day of the year, clouds, haze, post-processing, render scale |
| P | Photo mode |
| R | Reference photo: line the game up with a real photo and save the view (npm run dev: saved to references/) |
| F1 or ? | All controls |
| Option | Effect |
|---|---|
fly | Start in the free camera |
noClouds | Skip the volumetric clouds |
noHaze | Skip the haze and sun shafts |
noVeg | Skip the trees |
noAudio | No sound |
bg | Keep rendering when the tab is hidden (automation) |
ref=<folder> | Open a saved reference photo: its view, the photo over the game |
bench&shots=gate,westWall,… | Render reference shots of the named views (src/core/DebugViews.js) and post them to a local collector |
npm install
npm run dev # http://127.0.0.1:5189
npm test # walks the town and the walls headlessly, then an engine smoke test
npm run build # static build in dist/
.github/workflows/deploy.yml builds and deploys to GitHub Pages on every push to main, and can also be
run by hand from the Actions tab.
sh tools/geodata/fetch.sh # OpenStreetMap (Overpass API) + Copernicus DEM tiles, into tools/geodata/raw/
node tools/geodata/build.mjs # -> public/data/dem-*.bin, src/world/obidos/osm.json
The LiDAR tiles (MDT-2m-*.tif) need a free account on the DGT's data portal:
download them there and put them in tools/geodata/raw/ before running build.mjs. The town's tiles are
111267, 112266 and 112267 (2024 flight).
| Folder | Contents |
|---|---|
src/world/obidos/ | Óbidos: geodata loading and geometry helpers, walls / towers / gates / stairs, houses, trees, town materials |
src/world/ | Terrain heightmap and masks (TerrainData), the CDLOD terrain and its material, the far terrain, colliders |
src/engine/ | The rendering engine: math, scene graph and geometry, GPU resources, WGSL shader composition, materials, lighting and shadows |
src/sky/ | Atmosphere, clouds, sky and environment |
src/post/ | Post chain: AO, haze, TAAU, motion blur, bloom, lens flare |
src/materials/ | Shared lighting: shadow filtering, bounce light, local lights |
src/player/ | The walker and the free camera |
src/ui/ | Settings panel, loading screen and HUD |
tools/geodata/ | Fetches and converts the OpenStreetMap and DEM data |
test/ | The Óbidos world test, engine and post-chain smoke tests |
Map data © OpenStreetMap contributors (ODbL). Elevation data: Copernicus WorldDEM-30 © DLR e.V. and © Airbus Defence and Space GmbH, provided under COPERNICUS by the European Union and ESA; LiDAR terrain model © Direção-Geral do Território (CC BY 4.0). The engine, sky and post chain come from Tidewater by DRG Software Solutions LLC (MIT). Full details are in CREDITS.md.