procedural infinite 3D city in the browser
  • TypeScript 99.5%
  • HTML 0.3%
  • CSS 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-03 15:58:52 +04:00
.github/workflows checkout lfs in deploy workflow + bump checkout to v6 2026-05-03 15:46:30 +04:00
src let camera descend through fly clamp so auto-ground triggers in low poly 2026-05-03 15:58:52 +04:00
.gitattributes default to third-person in realistic mode + track realistic.glb via lfs 2026-05-03 15:38:03 +04:00
.gitignore default to third-person in realistic mode + track realistic.glb via lfs 2026-05-03 15:38:03 +04:00
build.ts add realistic mode and low-poly/realistic toggle 2026-05-03 15:24:29 +04:00
bun-env.d.ts initial city scene 2026-05-03 10:49:06 +04:00
bun.lock initial city scene 2026-05-03 10:49:06 +04:00
bunfig.toml initial city scene 2026-05-03 10:49:06 +04:00
CNAME initial city scene 2026-05-03 10:49:06 +04:00
package.json initial city scene 2026-05-03 10:49:06 +04:00
README.md initial city scene 2026-05-03 10:49:06 +04:00
tsconfig.json initial city scene 2026-05-03 10:49:06 +04:00

city

Procedural infinite 3D city in the browser. Three.js, React, Bun.

Live: https://city.gaurav.zip

Features

  • Procedural infinite chunked city, streamed as you fly around
  • GLB low-poly building models + procedural towers with shader-rendered windows
  • Geometric low-poly roads, sidewalks, lane markings, crosswalks
  • Trees with seasonal foliage, parks
  • Streetlights that glow at night
  • 260 cars driving and 380 pedestrians walking
  • 220 drifting clouds, atmospheric Sky shader, stars + moon at night
  • Day/night cycle (manual slider or auto)
  • Weather: clear / rain / snow
  • Seasons: spring / summer / fall / winter
  • Free-fly camera: WASD / arrows + mouse, Shift sprint, Space/E up, C/Q down
  • Mobile-friendly: dual on-screen joysticks

Run

bun install
bun run dev

Open http://localhost:3000.

Build

bun run build

Outputs static site to dist/. Deploys to GitHub Pages via .github/workflows/deploy.yml.