Skip to content

Spaceship interior demo: first-person Three.js walkthrough, self-evaluated to 9/9 rubric#12

Draft
ilikevibecoding wants to merge 17 commits into
mainfrom
cursor/spaceship-interior-demo-38d1
Draft

Spaceship interior demo: first-person Three.js walkthrough, self-evaluated to 9/9 rubric#12
ilikevibecoding wants to merge 17 commits into
mainfrom
cursor/spaceship-interior-demo-38d1

Conversation

@ilikevibecoding

@ilikevibecoding ilikevibecoding commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Play it in the browser

Merge this PR → the game goes live at https://ehpurple.com/spaceship/

The Pages workflow now builds the game (npm ci && vite build in spaceship/) and publishes it at /spaceship/ alongside the existing site. Deploying straight from this branch was attempted but the repo's github-pages environment protection only allows deployments from main, so the merge is what flips it live (the root site at ehpurple.com is untouched).

What this is

A small first-person demo (spaceship/) where you walk the interior of a used-future, Star Wars-style ship in flight. Built with Vite + three (r184), fully procedural — no downloaded models or textures. Developed in an autonomous build → screenshot → judge → fix loop until every rubric item passed on two consecutive iterations (iterations 8 and 9 of a max 12).

Highlights

  • Modules: player.js (pointer lock, WASD, head bob, capsule-vs-AABB collision), ship.js (kit-bashed cockpit/corridor/quarters/galley/bathroom, merged static geometry), space.js (parallax starfield, shader planets with atmosphere rims, nebulae), interact.js (raycast hover + prompts + fades + rest-cycle lighting), post.js (N8AO, bloom, ACES, vignette/grain), textures.js (canvas-generated PBR maps), main.js.
  • Interactions: bed (fade, "8 hours pass", lighting shifts to rest cycle), galley ("Energy restored"), bathroom sink (fade, "Refreshed"), one-line HUD status with ship clock.
  • Self-evaluation harness: tools/shots.mjs spawns vite + headless Chromium (SwiftShader), drives window.debugAPI.setView(...) for deterministic cockpit / corridor / quarters / window captures, plus scripted interaction smoke tests; full per-iteration scoring lives in spaceship/PROGRESS.md with screenshots in spaceship/shots/.
  • Key bug found via the loop: N8AO was gamma-correcting inside the composer while OutputPass converted to sRGB again — the whole frame was double-gamma'd; every shot before iteration 4 was washed out. A/B probe captures isolated it.
  • Budget: ≤239 draw calls / ~122k tris worst view, 3 shadow maps (1×1024, 2×512) — comfortably 60 fps-class on a mid-range laptop GPU.

The four final views

Corridor
Cockpit
Crew quarters
Porthole with gas giant

Run it locally

cd spaceship
npm install
npm run dev          # click to board; WASD + mouse, E to interact
node tools/shots.mjs <n>   # headless screenshot/scoring harness

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 11 commits June 11, 2026 19:57
…res, shots harness

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
…stars/planets, fixed interact aims

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
…arters detail, subtle hover

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
…e lights

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
…, score iter4

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
…or lift

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
my-projects Ready Ready Preview, Comment Jun 12, 2026 3:57pm
my-projects-kf1f Ready Ready Preview, Comment Jun 12, 2026 3:57pm

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
…ering, no camera roll; rework coplanar geometry at doorways, floors, counters, sloped dash

Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
@cursor cursor Bot had a problem deploying to github-pages June 12, 2026 02:16 Failure
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants