Skip to content

Add the camera shots to the golden_line example - #352

Merged
ASDAlexander77 merged 1 commit into
mainfrom
golden-line-shots
Dec 5, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
golden-line-shots

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

  • New core/golden_line_shots.ts ports the original's cameraman (shots.js). It has six takes: drone chase, beside the rails, viaduct, window seat, out of the tunnel and driver's cab.
    • Command line: -shot, with the shot options -seed, -side, -at, -variant and -bay, and the original's capture presets via -preset.
    • In the UI: one radio button per take.
    • The default view is now the original's opening take.
  • The takes also change the world:
    • Tunnel dazzle: the tunnel take adds exposure and glare as the engine leaves the bore. The steam's light and the dark inside the mouth are held back so they don't burn out.
    • Poles: the poles and wires in front of a lens are cleared (StructuresRenderer.setClearPoles).
    • Trees: trees are kept out of the viaduct, trackside and drone views (TreeRenderer.keepViewOpen, plus the CLEARANCE rule in golden_line_trees.hlsl).
    • Plume: the swollen plume shows from the drone and from still cameras (aerialShot).
  • The default -test now checks for a bright sky over the land, because the opening's morning sky is warm, not blue.
  • Not in this PR: the director (cutting from take to take), the headlight's beam on the line after dusk, and the sound.

Verification

  • Rig poses: match the original bit for bit in 17 composed cases. The original's shots.js runs under node and ours under the tslang JIT, both replaying composeNow from main.js.
  • Presets: every preset was compared side by side with the page at the same clock. The framing matches; the differences are steam and bird history.
  • Builds: gc, own and rc render byte-identical frames in 7 views. The own build compiles with --own-fallback=error.
  • Tests: ctest -R golden_line passes 6/6 (dx12 and vk). Vulkan -debug validation and the D3D12 debug layer report no errors.

🤖 Generated with Claude Code

Port the original's cameraman (shots.js) as core/golden_line_shots.ts: the
drone chase, beside the rails, the viaduct, the window seat, out of the tunnel
and the driver's cab, with their shot options (-shot, -seed, -side, -at,
-variant, -bay) and the original's capture presets (-preset). The default view
is now the original's opening take.

Also port what the takes do to the world: the tunnel take's dazzle (extra
exposure and glare, the steam and the dark of a mouth held back), the poles
cleared in front of a lens, the trees kept out of the viaduct, trackside and
drone views, and the swollen plume seen from the drone and still cameras.
Rig poses match the original bit for bit over 17 composed cases.

The default -test now checks a bright sky over the land (the opening's
morning sky is warm, not blue). The director (the cuts) follows separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 15211e3 into main Dec 5, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the golden-line-shots branch December 5, 2026 09:48
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.

1 participant