Skip to content

feat(site): a depth curvature check beside the head-turn preview - #83

Merged
firejune merged 1 commit into
mainfrom
roa/curvature-mode
Oct 26, 2026
Merged

firejune merged 1 commit into
mainfrom
roa/curvature-mode

Conversation

@firejune

Copy link
Copy Markdown
Contributor

Adds /demos/head-turn/curvature/: the original painting displaced by its depth map, with no rig. It is a tool for reading the depth map; the method follows a shader-based fake-3D effect. The head-turn page links to it, and the hash-pinned bundle is unchanged.

Command Exit Figures
bun test src 0 33 pass, 0 fail (2 new, one negative control)
bun run build + bun run verify 0 12 pages, PASS
Chromium (Playwright) 0 0 failed requests, 0 console errors
  • Pointer test: left vs right changes 15.1% of pixels.
  • Phone test: a touch drag changes 20.5%.
  • Registration: depth vs painting is a crop: x = 0.99908·x′ − 2.939, residual median 0.17 px.

🤖 Generated with Claude Code

A new page, /demos/head-turn/curvature/, shows the original painting
displaced by its depth map, with no rig. A single WebGL fragment shader
samples each pixel at its position plus depth times a pointer-driven
camera offset (max 3% of width at strength 1, exponentially damped). The
panel has strength, depth gamma/contrast/bias, a Show depth toggle and
Centre, and is collapsed on phones. It is a tool for reading the depth map,
not the head-turn feature, and its caption says so.

The depth map (1359x2000) is a crop of the painting's frame (1368x2000), not
a scaled copy. Fitted on 1,920 rows of silhouette edges it is
x = 0.99908 x' - 2.939, with a residual median of 0.17 px (p90 1.09), against
a median of 2.77 px for a uniform stretch. It is resampled into the
painting's frame ahead of time, so the shader carries no registration.

The head-turn wrapper gains one link; the hash-pinned bundle is untouched.
verify checks the page's five files, its caption, its relative references
and the links both ways, with a negative control.

Co-Authored-By: Roa <342598975+fj-roa[bot]@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T06:27:58.084020Z 146d0e6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@firejune
firejune merged commit 5af7a3c into main Oct 26, 2026
3 checks passed
@firejune
firejune deleted the roa/curvature-mode branch October 26, 2026 06:28
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