Add dolly zoom demo#13
Open
itamarwe wants to merge 4 commits into
Open
Conversation
A standalone Three.js scene at /dolly-zoom/ illustrating the dolly-zoom (Vertigo) effect: as the slider goes from 1x to 20x, the camera dollies back while the FOV narrows so the foreground person stays the same size, making the second person 100 m behind appear to grow and the surroundings compress. https://claude.ai/code/session_01RP9ampBVGD5N2FU2eABDUx
- Vendor three.module.js (r160) so the demo works without external CDN access and renders reliably in headless environments - Offset the second person 1.4 m sideways so they peek out behind the foreground subject and remain visible at every zoom level - Push side trees out to a min 8 m offset to keep a clear corridor down the path for the second person at narrow FOVs https://claude.ai/code/session_01RP9ampBVGD5N2FU2eABDUx
- preview.gif: animated 1x->20x->1x sweep (~12 fps ping-pong) - preview-strip.png: 2x3 contact sheet at 1x, 2x, 4x, 7x, 12x, 20x Useful as static previews where WebGL or an interactive page isn't available. https://claude.ai/code/session_01RP9ampBVGD5N2FU2eABDUx
Single 660 KB HTML file with three.js (r160 minified) inlined and loaded through a blob URL via dynamic import — no importmap or external network needed. Suitable for pasting into a Claude.ai conversation as an artifact. https://claude.ai/code/session_01RP9ampBVGD5N2FU2eABDUx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A standalone Three.js scene at /dolly-zoom/ illustrating the dolly-zoom
(Vertigo) effect: as the slider goes from 1x to 20x, the camera dollies
back while the FOV narrows so the foreground person stays the same size,
making the second person 100 m behind appear to grow and the surroundings
compress.
https://claude.ai/code/session_01RP9ampBVGD5N2FU2eABDUx