realism-bench 1.0.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Zero-Asset Procedural Reality Benchmark for AI Coding Agents.**
|
|
4
4
|
|
|
5
|
+
Live Arena & Leaderboard: **https://realism.automagik.si** · Repository: **https://github.com/automagik-si/realism-bench**
|
|
6
|
+
|
|
5
7
|
Can an AI coding agent (`harness + model + effort`) write pure procedural WebGL2/WebGPU graphics code (pinned `three@0.187.0` + custom GLSL/WGSL) that a human cannot distinguish from **real camera footage** — with zero generative images, zero external textures, zero downloaded 3D meshes, zero fonts, and verified causal physics?
|
|
6
8
|
|
|
7
9
|
Real camera takes compete in the same blind arena, encoded through the exact same BT.709 H.264 pipeline.
|
|
@@ -13,6 +15,9 @@ Real camera takes compete in the same blind arena, encoded through the exact sam
|
|
|
13
15
|
```bash
|
|
14
16
|
# Zero-install via npm (prebuilt native Go binary for Linux & macOS)
|
|
15
17
|
npx realism-bench
|
|
18
|
+
|
|
19
|
+
# Run all 5 v1.0 scenes in 5 parallel isolated panes (GPU eval serialized via eval.lock + auto-submit)
|
|
20
|
+
npx realism-bench run --all --harness claude --headless
|
|
16
21
|
```
|
|
17
22
|
|
|
18
23
|
Or build from source:
|
|
@@ -51,10 +56,13 @@ realism-bench check # run full Zero-Asset + tile determ
|
|
|
51
56
|
realism-bench run r-rain-window --harness agy --model gemini-3-pro --effort high --yolo
|
|
52
57
|
realism-bench run last-call --harness custom --cmd 'my-agent --prompt {prompt}'
|
|
53
58
|
|
|
59
|
+
# Local model with live GPU power integration (Wh / W) and vLLM /metrics token tracking
|
|
60
|
+
realism-bench run all --sequential --headless --harness omp --profile qwen4 --model local/Qwen4-35B-A3B --local --power-cmd "nvidia-smi --query-gpu=power.draw --format=csv,noheader,nounits"
|
|
61
|
+
|
|
54
62
|
# Re-evaluate, capture deterministic frame-by-frame BT.709 showcase.mp4 + segments + separate FPS pass
|
|
55
63
|
realism-bench eval <run-id>
|
|
56
64
|
|
|
57
|
-
# Launch local
|
|
65
|
+
# Launch local Leaderboard & Analytics (/), Blind A/B Compare (/arena), Human Eval 1–5 (/eval), Protocol (/methodology)
|
|
58
66
|
realism-bench view
|
|
59
67
|
|
|
60
68
|
# Submit evaluated run + media to Realism-Bench server
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "realism-bench",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Realism-Bench
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Realism-Bench v2.0 — Zero-Asset Procedural Reality Benchmark CLI, Parallel Swarm Suite, Inference Recipes, and Blind Reality Test Arena.",
|
|
5
|
+
"homepage": "https://realism.automagik.si",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/automagik-si/realism-bench.git"
|
|
9
|
+
},
|
|
5
10
|
"license": "MIT",
|
|
6
11
|
"bin": {
|
|
7
12
|
"realism-bench": "bin/realism-bench.js"
|
|
@@ -22,15 +27,16 @@
|
|
|
22
27
|
"coding-agents",
|
|
23
28
|
"eval",
|
|
24
29
|
"arena",
|
|
25
|
-
"cli"
|
|
30
|
+
"cli",
|
|
31
|
+
"inference-recipes"
|
|
26
32
|
],
|
|
27
33
|
"engines": {
|
|
28
34
|
"node": ">=18"
|
|
29
35
|
},
|
|
30
36
|
"optionalDependencies": {
|
|
31
|
-
"realism-bench-linux-x64": "
|
|
32
|
-
"realism-bench-linux-arm64": "
|
|
33
|
-
"realism-bench-darwin-arm64": "
|
|
34
|
-
"realism-bench-darwin-x64": "
|
|
37
|
+
"realism-bench-linux-x64": "2.0.0",
|
|
38
|
+
"realism-bench-linux-arm64": "2.0.0",
|
|
39
|
+
"realism-bench-darwin-arm64": "2.0.0",
|
|
40
|
+
"realism-bench-darwin-x64": "2.0.0"
|
|
35
41
|
}
|
|
36
42
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Realism-Bench v2.0 · C1 — Dusk Regatta (`dusk-regatta`) [Parallel Swarm Edition]
|
|
2
|
+
|
|
3
|
+
Build a **16-second photorealistic procedural 3D cinema shot** indistinguishable from real chase-boat footage at sea — **as fast as possible using parallel subagent orchestration**. Pure watchable cinema: NOT a game — zero UI, zero HUD, zero buoys, zero score, zero audio.
|
|
4
|
+
|
|
5
|
+
## v2.0 Evaluation & Parallel Orchestration Mandate
|
|
6
|
+
|
|
7
|
+
Suite v2.0 scores **Photorealism (5,000)** + **Zero-Asset & Determinism Gate (2,000)** + **Real-Time FPS (1,500)** + **Delivery Speed & Parallel Orchestration (1,500)** (speed/parallel points require passing the gate).
|
|
8
|
+
|
|
9
|
+
Act as **Lead Architect & Integrator**. Do **NOT** build every module sequentially if your harness supports subagents (`task` with a multi-item `tasks` array in `omp`, parallel `Agent` calls in Claude Code, `spawn_agent` in Codex, or `invoke_subagent` in Antigravity). Execute in **3 fast phases**:
|
|
10
|
+
|
|
11
|
+
1. **Phase 1 — Freeze Interface Contract (~30s, Lead only):**
|
|
12
|
+
- Read `rail.json`, `src/main.js`, and `src/realism/contract.js` in parallel.
|
|
13
|
+
- Create `src/scene/shared.js` exporting exact coordinates from `rail.json` (`sloop_start`), the shared deterministic wave-height function `sampleOceanHeight(x, z, t, seed)` (so ocean surface, boat heave/pitch/heel, and wake stay 100% locked together!), weather timeline helpers (`0–5s` golden dusk, `5–11s` sun lost & gust front at `t=8s`, `11–16s` rain curtain & distant lightning), and module contract:
|
|
14
|
+
`export function createModule({ scene, camera, renderer, rail, seed, shared }) -> { update({ t, sample, shared }), dispose?() }`
|
|
15
|
+
2. **Phase 2 — Single-Wave Parallel Subagent Fan-Out (4 concurrent subagents, strictly disjoint file ownership!):**
|
|
16
|
+
Launch **ALL 4 subagents in ONE parallel batch** (do NOT serialize them). Give each worker `src/scene/shared.js` interface, Zero-Asset rules, and its exclusive file path:
|
|
17
|
+
- **Worker 1 → `src/modules/oceanSurface.js`**: Custom GLSL multi-scale Gerstner + capillary-ripple dark indigo-teal ocean shader (consistent swell height across `0–16s`), sun specular glitter path fading as clouds overtake the sun, wind streaks & fresh whitecaps spreading at `t ≥ 8s`, bow foam and trailing white wake locked to the sloop path.
|
|
18
|
+
- **Worker 2 → `src/modules/racingSloop.js`**: Procedural ~10 m weathered racing sloop sailing along `-Z` on port tack (`sloop_start`): curved hull, teak/wet deck, cockpit, mast, boom, standing rigging shrouds & stanchions, translucent backlit dacron mainsail & jib (subsurface scattering + wind billow), dynamic gust heel around `t=8s`, and wind-driven bow spray.
|
|
19
|
+
- **Worker 3 → `src/modules/skySquall.js`**: Custom Rayleigh/Mie golden dusk sky dome (`4°–6°` low sun), towering dark windward rain-squall cloud wall **already visible from frame 0**, sun slipping behind the leading cloud edge (`t=5–11s`) cooling sky & lighting to deep slate-blue, and distant sheet lightning flickering inside storm cloud undersides (`t=11–16s`).
|
|
20
|
+
- **Worker 4 → `src/modules/rainCurtainOptics.js`**: Slanted rain curtain sweeping across frame (`t=11–16s`), subtle telephoto lens mist, ACES filmic tone mapping, specular bloom/glint, and deterministic sensor grain (`EffectComposer` + `ShaderPass`).
|
|
21
|
+
3. **Phase 3 — Integration & Verification (Lead only):**
|
|
22
|
+
- Wire all 4 modules cleanly into `src/main.js`, run `npm run build`, render checkpoints via `realism-bench shot --t 2.0`, `--t 8.0`, `--t 14.0`, `--offrail high`, and **open each saved `.png` screenshot using your file-read / image tool** to visually inspect ocean surface, sails, lighting, sky, and photorealism — fix every visual artifact you see, then run `realism-bench check` until **100% PASS**.
|
|
23
|
+
|
|
24
|
+
## The Shot (`00s – 16s`, continuous chase-boat telephoto, `20.86°` vFOV)
|
|
25
|
+
|
|
26
|
+
A weathered ~10 m racing sloop sails along `-Z` on port tack across open ocean at dusk (`rail.json` supplies the exact telephoto camera trajectory and boat sway):
|
|
27
|
+
- **`00s – 05s` Golden Dusk:** Low sun through atmospheric haze, shimmering glitter path on dark ocean, backlit dacron sails, bow foam & wake, towering dark squall wall already looming windward.
|
|
28
|
+
- **`05s – 11s` Sun Lost & Gust Front:** Sun slips behind clouds, sky cools to slate-blue; around `t=8s` gust front hits with wind streaks, whitecaps, steeper heel, and bow spray.
|
|
29
|
+
- **`11s – 16s` Rain Curtain & Distant Lightning:** Slanted rain curtain sweeps frame; distant sheet lightning glints off wet deck and wave crests.
|
|
30
|
+
|
|
31
|
+
## Strict Contract & Zero-Asset Rules (Hard Gate FAIL on Violation)
|
|
32
|
+
|
|
33
|
+
1. Drive the camera strictly from `sampleRail(rail, t)` in `src/realism/rail.js`; preserve `window.realismBench` (`seek`, `play`, `pause`, `setMode`, `setCamera`, `getCamera`, `info`) + `SPACE` Free-Cam.
|
|
34
|
+
2. Only `three@0.187.0` in runtime `dependencies`. Allowed addons: `controls/*`, `postprocessing/{EffectComposer,Pass,RenderPass,ShaderPass,OutputPass}.js`, `shaders/{CopyShader,OutputShader}.js`, `lights/RectAreaLight*`.
|
|
35
|
+
3. **BANNED addons:** `SMAAPass.js`, `SMAANode.js`, `tsl/math/Bayer.js`, **`objects/Water*`, `objects/Sky*`, `objects/Lensflare*`** (build your own ocean & sky shaders!), `geometries/{Teapot,Text}Geometry`, all `loaders/*` and `libs/*`.
|
|
36
|
+
4. Zero external/bundled assets, fonts, audio, `data:image/`, base64 > 2 KiB, or network requests. Pure deterministic function of `(seed, t)`. Identical quality path for `play()` and `seek()`.
|
|
37
|
+
5. **Workspace boundary:** Work strictly inside your current workspace directory — do NOT read, search, or inspect files outside it (use only the starter files, `PROMPT.md`, `rail.json`, and the `realism-bench shot` / `realism-bench check` CLI commands).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Realism-Bench v2.0 · C2 — 02:14 AM — Last Call (`last-call`) [Parallel Swarm Edition]
|
|
2
|
+
|
|
3
|
+
Build a **45-second unbroken single-take ("oner") photorealistic procedural 3D film** with zero cuts, zero game mechanics, zero UI/HUD, and zero audio — **as fast as possible using parallel subagent orchestration**.
|
|
4
|
+
|
|
5
|
+
## v2.0 Evaluation & Parallel Orchestration Mandate
|
|
6
|
+
|
|
7
|
+
Suite v2.0 scores **Photorealism (5,000)** + **Zero-Asset & Determinism Gate (2,000)** + **Real-Time FPS (1,500)** + **Delivery Speed & Parallel Orchestration (1,500)** (speed/parallel points require passing the gate).
|
|
8
|
+
|
|
9
|
+
This 3-act 45s boss oner is specifically designed for **5-way parallel swarm decomposition**. Act as **Lead Architect & Integrator**. Do **NOT** write all 3 acts sequentially yourself if your harness supports subagents (`task` with a multi-item `tasks` array in `omp`, parallel `Agent` calls in Claude Code, `spawn_agent` in Codex, or `invoke_subagent` in Antigravity). Execute in **3 fast phases**:
|
|
10
|
+
|
|
11
|
+
1. **Phase 1 — Freeze Interface Contract (~30–45s, Lead only):**
|
|
12
|
+
- Read `rail.json`, `src/main.js`, and `src/realism/contract.js` in parallel.
|
|
13
|
+
- Create `src/scene/shared.js` exporting all landmark world coordinates from `rail.json` (`counter_surface`, `whiskey_tumbler`, `ceramic_mug`, `paper_napkin`, `window_glass`, `neon_open_sign`, `diner_door`, `sedan_center`, `oil_puddle`, `bicycle_and_pelican`), shared deterministic PRNG helpers, and module contract:
|
|
14
|
+
`export function createModule({ scene, camera, renderer, rail, seed, shared }) -> { update({ t, sample, shared }), dispose?() }`
|
|
15
|
+
2. **Phase 2 — Single-Wave Parallel Subagent Fan-Out (5 concurrent subagents, strictly disjoint file ownership!):**
|
|
16
|
+
Launch **ALL 5 subagents in ONE parallel batch** (do NOT serialize them). Give each worker its exact world coordinates from `rail.json`, the causal `openSignE` requirement, the Zero-Asset rules, and its exclusive file path:
|
|
17
|
+
- **Worker 1 → `src/modules/act1Counter.js`**: Act 1 (`00–15s`) interior counter zone — scratched brushed-steel counter (`counter_surface`) catching the causal red `openSignE` pulse, thick refractive `whiskey_tumbler` with amber whiskey + two melting ice cubes + condensation + steel caustics, chipped `ceramic_mug` releasing volumetric steam under a faintly flickering overhead fluorescent tube, and crumpled fibrous `paper_napkin` wicking a spilled stain.
|
|
18
|
+
- **Worker 2 → `src/modules/act2WindowNeon.js`**: Act 2 (`15–30s`) diner shell, ajar glass door (`diner_door`), fogged rain-streaked `window_glass` with gravity-driven sliding/merging droplets leaving clear trails, and the hero red `"OPEN"` `neon_open_sign` built purely from 3D procedural glass tubes/strokes/SDFs (**never** fonts or `Canvas2D.fillText`) whose letter **`E`** causally drives red illumination across all 3 acts via `sample.controls.openSignE`.
|
|
19
|
+
- **Worker 3 → `src/modules/act3SedanLot.js`**: Act 3 (`30–45s`) exterior pouring midnight rain, awning, worn idling 1990s `sedan_center` with volumetric halogen headlight beams cutting the rain, oscillating wipers & dense exhaust smoke, plus cracked wet asphalt `oil_puddle` with active raindrop ripples, **rainbow thin-film oil sheen**, and the stretched pulsing red `'E'` reflection (`openSignE`).
|
|
20
|
+
- **Worker 4 → `src/modules/act3BicyclePelican.js`**: Final reveal at `t = 42s` (`bicycle_and_pelican`, leaning against the streetlamp in the rain) — a **rusted procedural bicycle** (curved steel tubing frame, spoked wheels, chainring, saddle, handlebars) with a **drenched procedural pelican perched on the handlebars** (real organic curved body, folded wet wings, long beak + throat pouch, webbed feet, deterministic head/feather water-shake droplets — NOT toy primitive boxes/spheres!).
|
|
21
|
+
- **Worker 5 → `src/modules/cinemaOptics.js`**: Continuous 45s optical rack-focus depth-of-field bokeh (`sample.focus_m`, `sample.f_number`), smooth interior-to-exterior dynamic exposure adaptation across the doorway transition, subtle wet-light halation, ACES filmic grading, and seeded film grain (`EffectComposer` + `ShaderPass`).
|
|
22
|
+
3. **Phase 3 — Integration & Verification (Lead only):**
|
|
23
|
+
- Wire all 5 modules into `src/main.js` (ensuring seamless sightlines across interior, window, doorway, and lot), run `npm run build`, render checkpoints via `realism-bench shot --t 5.0`, `--t 20.0`, `--t 35.0`, `--t 42.0`, `--offrail left`, and **open each saved `.png` screenshot using your file-read / image tool** to visually inspect lighting, transitions, materials, and photorealism — fix every seam or visual artifact you see, then run `realism-bench check` until **100% PASS**.
|
|
24
|
+
|
|
25
|
+
## The Unbroken 3-Act Oner (`00s – 45s`, `rail.json` drives the exact camera)
|
|
26
|
+
|
|
27
|
+
One physical light source ties all three acts together: the sputtering red neon **`OPEN`** sign (`neon_open_sign`) whose **`E`** obeys `sample.controls.openSignE` (`0` = dark, `1` = glowing, while `O`, `P`, `N` stay lit).
|
|
28
|
+
- **Act 1 (`00s – 15s`):** Macro brushed-steel counter, whiskey tumbler + ice + caustics, chipped ceramic mug + steam, wicking napkin, flickering fluorescent + red `openSignE` pulse.
|
|
29
|
+
- **Act 2 (`15s – 30s`):** Fogged rain-streaked diner window with sliding droplets/trails, `"OPEN"` neon reflection breaking over droplets, smooth optical rack focus to parking lot headlights.
|
|
30
|
+
- **Act 3 (`30s – 45s`):** Glide through ajar door into pouring rain; idling 1990s sedan with headlights/wipers/exhaust; wet oil-sheen puddle reflecting red `'E'`; final reveal (`t=42s`) of rusted bicycle + drenched pelican perched on handlebars shaking off rain.
|
|
31
|
+
|
|
32
|
+
## Strict Contract & Zero-Asset Rules (Hard Gate FAIL on Violation)
|
|
33
|
+
|
|
34
|
+
1. Drive the camera strictly from `sampleRail(rail, t)` in `src/realism/rail.js`; preserve `window.realismBench` (`seek`, `play`, `pause`, `setMode`, `setCamera`, `getCamera`, `info`) + `SPACE` Free-Cam.
|
|
35
|
+
2. Only `three@0.187.0` in runtime `dependencies`. Allowed addons: `controls/*`, `postprocessing/{EffectComposer,Pass,RenderPass,ShaderPass,OutputPass}.js`, `shaders/{CopyShader,OutputShader}.js`, `lights/RectAreaLight*`.
|
|
36
|
+
3. **BANNED addons:** `SMAAPass.js`, `SMAANode.js`, `tsl/math/Bayer.js`, `objects/*`, `geometries/{Teapot,Text}Geometry`, all `loaders/*` and `libs/*`.
|
|
37
|
+
4. Zero external/bundled assets, fonts (`FontFace` / `Canvas2D.fillText` banned), audio, `data:image/`, base64 > 2 KiB, or network requests. Pure deterministic function of `(seed, t, controls)`. Identical quality path for `play()` and `seek()`.
|
|
38
|
+
5. **Workspace boundary:** Work strictly inside your current workspace directory — do NOT read, search, or inspect files outside it (use only the starter files, `PROMPT.md`, `rail.json`, and the `realism-bench shot` / `realism-bench check` CLI commands).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Realism-Bench v2.0 · R2 — Whiskey & Steel Counter (`r-glass-counter`) [Parallel Swarm Edition]
|
|
2
|
+
|
|
3
|
+
Build a **10-second photorealistic macro procedural 3D cinema shot** indistinguishable from real camera footage — **as fast as possible using parallel subagent orchestration**. Pure watchable cinema: no game mechanics, no UI, no HUD, no audio.
|
|
4
|
+
|
|
5
|
+
## v2.0 Evaluation & Parallel Orchestration Mandate
|
|
6
|
+
|
|
7
|
+
Suite v2.0 scores **Photorealism (5,000)** + **Zero-Asset & Determinism Gate (2,000)** + **Real-Time FPS (1,500)** + **Delivery Speed & Parallel Orchestration (1,500)** (speed/parallel points require passing the gate).
|
|
8
|
+
|
|
9
|
+
Act as **Lead Architect & Integrator**. Do **NOT** build every module sequentially if your harness supports subagents (`task` with a multi-item `tasks` array in `omp`, parallel `Agent` calls in Claude Code, `spawn_agent` in Codex, or `invoke_subagent` in Antigravity). Execute in **3 fast phases**:
|
|
10
|
+
|
|
11
|
+
1. **Phase 1 — Freeze Interface Contract (~30s, Lead only):**
|
|
12
|
+
- Read `rail.json`, `src/main.js`, and `src/realism/contract.js` in parallel.
|
|
13
|
+
- Create `src/scene/shared.js` exporting the exact coordinates from `rail.json` (`counter_surface` at `y = 0.90 m`, `whiskey_tumbler`, `ceramic_mug`, `paper_napkin`), deterministic PRNG helpers, and module contract:
|
|
14
|
+
`export function createModule({ scene, camera, renderer, rail, seed, shared }) -> { update({ t, sample, shared }), dispose?() }`
|
|
15
|
+
2. **Phase 2 — Single-Wave Parallel Subagent Fan-Out (4 concurrent subagents, strictly disjoint file ownership!):**
|
|
16
|
+
Launch **ALL 4 subagents in ONE parallel batch** (do NOT serialize them). Give each worker exact coordinates, Zero-Asset rules, and its exclusive file path:
|
|
17
|
+
- **Worker 1 → `src/modules/steelCounter.js`**: Anisotropic scratched brushed-steel diner counter (`y = 0.90 m`), subtle edge wear, dark diner background silhouette, faintly flickering cool overhead fluorescent tube, and causal red neon reflection driven by `sample.controls.openSignE` (`0..1`).
|
|
18
|
+
- **Worker 2 → `src/modules/whiskeyTumbler.js`**: Thick-bottomed refractive glass tumbler (`whiskey_tumbler`), amber whiskey liquid volume with meniscus, two partially submerged melting ice cubes, exterior condensation droplets, and refracted golden caustics projected onto the steel surface.
|
|
19
|
+
- **Worker 3 → `src/modules/mugSteam.js`**: Worn glazed ceramic mug (`ceramic_mug`) with a real geometric rim chip and dark coffee interior, releasing curling deterministic volumetric wisps of hot steam illuminated by the flickering fluorescent and red neon bounce.
|
|
20
|
+
- **Worker 4 → `src/modules/napkinAndOptics.js`**: Crumpled fibrous paper napkin (`paper_napkin`) with organic creases absorbing a spilled amber droplet (darkened translucent wet core feathering into dry matte fibers), plus macro depth-of-field bokeh (`sample.focus_m`, `sample.f_number`), ACES filmic grading, and seeded sensor grain (`EffectComposer` + `ShaderPass`).
|
|
21
|
+
3. **Phase 3 — Integration & Verification (Lead only):**
|
|
22
|
+
- Wire all 4 modules cleanly into `src/main.js`, run `npm run build`, render checkpoints via `realism-bench shot --t 2.0`, `--t 5.0`, `--t 8.0`, `--offrail left`, and **open each saved `.png` screenshot using your file-read / image tool** to visually inspect lighting, refraction, steam, materials, and photorealism — fix every visual artifact you see, then run `realism-bench check` until **100% PASS**.
|
|
23
|
+
|
|
24
|
+
## The Shot (`00s – 10s`, locked-off macro)
|
|
25
|
+
|
|
26
|
+
A close macro view skimming a scratched brushed-steel diner counter (`y = 0.90 m`) at 02:14 AM under a faintly flickering cool overhead fluorescent tube and pulsing red reflection from the off-screen `OPEN` neon sign (`sample.controls.openSignE ∈ {0, 1}`):
|
|
27
|
+
- **Whiskey tumbler (`whiskey_tumbler`):** Thick-bottomed glass, amber whiskey, two melting ice cubes, meniscus, exterior condensation beads, caustics on steel.
|
|
28
|
+
- **Brushed steel counter:** Anisotropic brushed grain with micro-scratches and causal red `openSignE` reflection.
|
|
29
|
+
- **Chipped ceramic mug (`ceramic_mug`):** Worn ceramic with rim chip and curling volumetric hot steam.
|
|
30
|
+
- **Crumpled paper napkin (`paper_napkin`):** Folded fibrous paper wicking a spilled amber droplet.
|
|
31
|
+
|
|
32
|
+
## Strict Contract & Zero-Asset Rules (Hard Gate FAIL on Violation)
|
|
33
|
+
|
|
34
|
+
1. Drive the camera strictly from `sampleRail(rail, t)` in `src/realism/rail.js`; preserve `window.realismBench` (`seek`, `play`, `pause`, `setMode`, `setCamera`, `getCamera`, `info`) + `SPACE` Free-Cam.
|
|
35
|
+
2. Only `three@0.187.0` in runtime `dependencies`. Allowed addons: `controls/*`, `postprocessing/{EffectComposer,Pass,RenderPass,ShaderPass,OutputPass}.js`, `shaders/{CopyShader,OutputShader}.js`, `lights/RectAreaLight*`.
|
|
36
|
+
3. **BANNED addons:** `SMAAPass.js`, `SMAANode.js`, `tsl/math/Bayer.js`, `objects/{Sky,Water,Lensflare}*`, `geometries/{Teapot,Text}Geometry`, all `loaders/*` and `libs/*`.
|
|
37
|
+
4. Zero external/bundled assets, fonts (`FontFace` / `Canvas2D.fillText` banned), audio, `data:image/`, base64 > 2 KiB, or network requests. Pure deterministic function of `(seed, t, controls)`. Identical quality path for `play()` and `seek()`.
|
|
38
|
+
5. **Workspace boundary:** Work strictly inside your current workspace directory — do NOT read, search, or inspect files outside it (use only the starter files, `PROMPT.md`, `rail.json`, and the `realism-bench shot` / `realism-bench check` CLI commands).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Realism-Bench v2.0 · R1 — Rain on Diner Window (`r-rain-window`) [Parallel Swarm Edition]
|
|
2
|
+
|
|
3
|
+
Build a **10-second photorealistic procedural 3D cinema shot** indistinguishable from real camera footage — **as fast as possible using parallel subagent orchestration**. Pure watchable cinema: no game mechanics, no UI, no HUD, no audio.
|
|
4
|
+
|
|
5
|
+
## v2.0 Evaluation & Parallel Orchestration Mandate
|
|
6
|
+
|
|
7
|
+
Suite v2.0 scores **Photorealism (5,000)** + **Zero-Asset & Determinism Gate (2,000)** + **Real-Time FPS (1,500)** + **Delivery Speed & Parallel Orchestration (1,500)** (speed/parallel points require passing the gate).
|
|
8
|
+
|
|
9
|
+
Act as **Lead Architect & Integrator**. Do **NOT** write every subsystem sequentially yourself if your harness provides a subagent / parallel task tool (e.g., `task` with a multi-item `tasks` array in `omp`, parallel `Agent` calls in Claude Code, `spawn_agent` in Codex, or `invoke_subagent` in Antigravity). Execute in **3 fast phases**:
|
|
10
|
+
|
|
11
|
+
1. **Phase 1 — Freeze Interface Contract (~30s, Lead only):**
|
|
12
|
+
- Read `rail.json`, `src/main.js`, and `src/realism/contract.js` in parallel.
|
|
13
|
+
- Create `src/scene/shared.js` exporting the exact coordinates from `rail.json` (`window_glass_center`, `neon_sign_center`, `headlight_left`, `headlight_right`), shared deterministic RNG helpers (wrapping `src/realism/prng.js`), and the module contract:
|
|
14
|
+
`export function createModule({ scene, camera, renderer, rail, seed, shared }) -> { update({ t, sample, shared }), dispose?() }`
|
|
15
|
+
2. **Phase 2 — Single-Wave Parallel Subagent Fan-Out (4 concurrent subagents, strictly disjoint file ownership!):**
|
|
16
|
+
Launch **ALL 4 subagents in ONE parallel batch** (do NOT serialize them). Give each worker the exact coordinates from `rail.json`, the strict Zero-Asset rules below, and its exclusive file path:
|
|
17
|
+
- **Worker 1 → `src/modules/glassRain.js`**: Fogged interior window glass pane (`window_glass_center`) with procedural condensation roughness map, gravity-driven sliding & merging raindrops, clear wiped trails behind descending drops, and physical droplet refraction normals distorting both exterior light and interior neon reflections.
|
|
18
|
+
- **Worker 2 → `src/modules/neonSign.js`**: Interior red `"OPEN"` neon sign (`neon_sign_center` behind camera) constructed purely from 3D procedural glass tubes/strokes/SDFs (**never** fonts or `Canvas2D.fillText`), emitting red bounce light and wet-glass reflection whose letter **`E`** causally obeys `sample.controls.openSignE` (`0` = dark, `1` = glowing, while `O`, `P`, `N` stay lit).
|
|
19
|
+
- **Worker 3 → `src/modules/exteriorLot.js`**: Dark rainy exterior parking lot beyond the window, wet ground reflections, distant car silhouette with two warm headlights (`headlight_left`, `headlight_right`), falling exterior rain streaks, and atmospheric night mist.
|
|
20
|
+
- **Worker 4 → `src/modules/opticsPost.js`**: Physical optical rack-focus depth-of-field bokeh pass (`EffectComposer` + custom `ShaderPass`) driven strictly by `sample.focus_m` (`0.45 m` foreground droplet → `18.0 m` distant headlights) and `sample.f_number`, plus ACES filmic tone mapping and deterministic seeded sensor grain.
|
|
21
|
+
3. **Phase 3 — Integration & Verification (Lead only):**
|
|
22
|
+
- Wire all 4 modules into `src/main.js` (preserving `sampleRail`, `installContract`, `window.realismBench`, and `SPACE` Free-Cam).
|
|
23
|
+
- Run `npm run build`, render checkpoints via `realism-bench shot --t 2.0`, `--t 5.0`, `--t 8.0`, `--offrail left`, and **open each saved `.png` screenshot using your file-read / image tool** to visually inspect lighting, geometry, materials, bokeh, and photorealism — fix every visual artifact you see, then run `realism-bench check` until **100% PASS**.
|
|
24
|
+
|
|
25
|
+
## The Shot (`00s – 10s`, locked-off camera, rack focus)
|
|
26
|
+
|
|
27
|
+
At 02:14 AM the roadside diner is dark. Looking from inside the diner through a fogged, rain-streaked glass pane (`window_glass_center` in `rail.json`) toward two stationary car headlights outside in the rainy parking lot (`headlight_left`, `headlight_right`):
|
|
28
|
+
- **Foreground glass & rain physics:** Fogged condensation with gravity-driven droplets sliding downward, merging, leaving clear wiped trails, and refracting the scene behind them.
|
|
29
|
+
- **Reflected neon sign (`neon_sign_center`):** Red `"OPEN"` neon reflected on the wet glass, breaking across droplets; **`E`** obeys `sample.controls.openSignE` (`0` = dark, `1` = glowing) causally across held-out traces and off-rail views.
|
|
30
|
+
- **Optical rack focus:** Focus pulls from foreground droplet (`0.45 m`) to distant headlights (`18.0 m`), shifting real bokeh from background to foreground.
|
|
31
|
+
|
|
32
|
+
## Strict Contract & Zero-Asset Rules (Hard Gate FAIL on Violation)
|
|
33
|
+
|
|
34
|
+
1. Drive the camera strictly from `sampleRail(rail, t)` in `src/realism/rail.js`; preserve `window.realismBench` (`seek`, `play`, `pause`, `setMode`, `setCamera`, `getCamera`, `info`) + `SPACE` Free-Cam.
|
|
35
|
+
2. Only `three@0.187.0` in runtime `dependencies`. Allowed addons: `controls/*`, `postprocessing/{EffectComposer,Pass,RenderPass,ShaderPass,OutputPass}.js`, `shaders/{CopyShader,OutputShader}.js`, `lights/RectAreaLight*`.
|
|
36
|
+
3. **BANNED addons:** `SMAAPass.js`, `SMAANode.js`, `tsl/math/Bayer.js`, `objects/{Sky,Water,Lensflare}*`, `geometries/{Teapot,Text}Geometry`, all `loaders/*` and `libs/*`.
|
|
37
|
+
4. Zero external/bundled images, meshes, HDRIs, fonts (`FontFace` / `Canvas2D.fillText` banned), audio, `data:image/`, base64 blobs > 2 KiB, or network requests. Pure deterministic function of `(seed, t, controls)` (use `src/realism/prng.js`; no `Math.random()` / `Date.now()` / `performance.now()` in rendered pixels). Identical quality path for `play()` and `seek()`.
|
|
38
|
+
5. **Workspace boundary:** Work strictly inside your current workspace directory — do NOT read, search, or inspect files outside it (use only the starter files, `PROMPT.md`, `rail.json`, and the `realism-bench shot` / `realism-bench check` CLI commands).
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Realism-Bench v2.0 · R3 — Rainy Midnight Lot (`r-wet-lot`) [Parallel Swarm Edition]
|
|
2
|
+
|
|
3
|
+
Build a **10-second photorealistic procedural 3D night-rain shot** indistinguishable from real camera footage — **as fast as possible using parallel subagent orchestration**. Pure watchable cinema: no game mechanics, no UI, no HUD, no audio.
|
|
4
|
+
|
|
5
|
+
## v2.0 Evaluation & Parallel Orchestration Mandate
|
|
6
|
+
|
|
7
|
+
Suite v2.0 scores **Photorealism (5,000)** + **Zero-Asset & Determinism Gate (2,000)** + **Real-Time FPS (1,500)** + **Delivery Speed & Parallel Orchestration (1,500)** (speed/parallel points require passing the gate).
|
|
8
|
+
|
|
9
|
+
Act as **Lead Architect & Integrator**. Do **NOT** build every module sequentially if your harness supports subagents (`task` with a multi-item `tasks` array in `omp`, parallel `Agent` calls in Claude Code, `spawn_agent` in Codex, or `invoke_subagent` in Antigravity). Execute in **3 fast phases**:
|
|
10
|
+
|
|
11
|
+
1. **Phase 1 — Freeze Interface Contract (~30s, Lead only):**
|
|
12
|
+
- Read `rail.json`, `src/main.js`, and `src/realism/contract.js` in parallel.
|
|
13
|
+
- Create `src/scene/shared.js` exporting exact landmark coordinates from `rail.json` (`sedan_center`, `asphalt_puddle`, `streetlamp`), deterministic PRNG helpers, and module contract:
|
|
14
|
+
`export function createModule({ scene, camera, renderer, rail, seed, shared }) -> { update({ t, sample, shared }), dispose?() }`
|
|
15
|
+
2. **Phase 2 — Single-Wave Parallel Subagent Fan-Out (4 concurrent subagents, strictly disjoint file ownership!):**
|
|
16
|
+
Launch **ALL 4 subagents in ONE parallel batch** (do NOT serialize them). Give each worker exact coordinates, Zero-Asset rules, and its exclusive file path:
|
|
17
|
+
- **Worker 1 → `src/modules/sedan.js`**: Procedural worn 1990s sedan (`sedan_center`) with authentic proportions, recessed wheel wells, panel gaps, wet clearcoat reflections, warm halogen headlights, oscillating windshield wipers sweeping water, red taillights, and a dense damp exhaust plume drifting from the tailpipe.
|
|
18
|
+
- **Worker 2 → `src/modules/wetAsphaltPuddle.js`**: Cracked wet asphalt aggregate ground with realistic height-masked puddles (`asphalt_puddle`), active expanding raindrop impact ripples, **iridescent rainbow thin-film oil sheen**, and a stretched reflection of the diner's pulsing red `"OPEN"` neon sign causally wired to `sample.controls.openSignE` (`0..1`).
|
|
19
|
+
- **Worker 3 → `src/modules/rainAndLights.js`**: Warm sodium streetlamp (`streetlamp`), diner exterior neon/window glow, volumetric headlight and streetlamp scattering cones cutting through steady pouring midnight rain streaks and wet ground splash mist.
|
|
20
|
+
- **Worker 4 → `src/modules/nightOptics.js`**: Filmic night exposure, subtle wet-specular halation/bloom, optical depth-of-field (`sample.focus_m`, `sample.f_number`), and deterministic high-ISO shadow grain (`EffectComposer` + `ShaderPass`).
|
|
21
|
+
3. **Phase 3 — Integration & Verification (Lead only):**
|
|
22
|
+
- Wire all 4 modules into `src/main.js`, run `npm run build`, render checkpoints via `realism-bench shot --t 2.0`, `--t 5.0`, `--t 8.0`, `--offrail high`, and **open each saved `.png` screenshot using your file-read / image tool** to visually inspect lighting, reflections, geometry, materials, and photorealism — fix every visual artifact you see, then run `realism-bench check` until **100% PASS**.
|
|
23
|
+
|
|
24
|
+
## The Shot (`00s – 10s`, locked-off exterior)
|
|
25
|
+
|
|
26
|
+
Outside a roadside diner at 02:14 AM in steady pouring rain:
|
|
27
|
+
- **Idling 1990s sedan (`sedan_center`):** Worn procedural body, panel gaps, wet clearcoat, volumetric halogen headlights, oscillating wipers, damp exhaust plume.
|
|
28
|
+
- **Cracked wet asphalt & oil-sheen puddle (`asphalt_puddle`):** Water pooled in depressions/cracks, active raindrop ripples, iridescent thin-film oil sheen, and causal stretched red `'E'` reflection obeying `sample.controls.openSignE ∈ {0, 1}`.
|
|
29
|
+
- **Atmosphere & lighting:** Warm sodium streetlamp (`streetlamp`), wet aggregate speculars, filmic night exposure, deterministic shadow grain.
|
|
30
|
+
|
|
31
|
+
## Strict Contract & Zero-Asset Rules (Hard Gate FAIL on Violation)
|
|
32
|
+
|
|
33
|
+
1. Drive the camera strictly from `sampleRail(rail, t)` in `src/realism/rail.js`; preserve `window.realismBench` (`seek`, `play`, `pause`, `setMode`, `setCamera`, `getCamera`, `info`) + `SPACE` Free-Cam.
|
|
34
|
+
2. Only `three@0.187.0` in runtime `dependencies`. Allowed addons: `controls/*`, `postprocessing/{EffectComposer,Pass,RenderPass,ShaderPass,OutputPass}.js`, `shaders/{CopyShader,OutputShader}.js`, `lights/RectAreaLight*`.
|
|
35
|
+
3. **BANNED addons:** `SMAAPass.js`, `SMAANode.js`, `tsl/math/Bayer.js`, `objects/{Sky,Water,Lensflare}*`, `geometries/{Teapot,Text}Geometry`, all `loaders/*` and `libs/*`.
|
|
36
|
+
4. Zero external/bundled assets, fonts (`FontFace` / `Canvas2D.fillText` banned), audio, `data:image/`, base64 > 2 KiB, or network requests. Pure deterministic function of `(seed, t, controls)`. Identical quality path for `play()` and `seek()`.
|
|
37
|
+
5. **Workspace boundary:** Work strictly inside your current workspace directory — do NOT read, search, or inspect files outside it (use only the starter files, `PROMPT.md`, `rail.json`, and the `realism-bench shot` / `realism-bench check` CLI commands).
|