Presets
Playback
Room and figures
Skew g bends the room so it looks like a box from one point; figure A slides along the back, B stays at the right.
Model checks
The science
The trick. A central collineation about the eye E maps every point P to P' = E + (P - E) s(P) with s = 1 / (1 + g (x + 0.03 (z - Ez))).
Planes go to planes and every ray through E is preserved, so the box room and the skewed room project to the same picture on the retina. Only the true distances change, by the factor s.
Size. A vertical object of height h at depth d (measured along the viewing axis) subtends an image height proportional to h / d. Two identical figures at depths dA and dB therefore have image-height ratio dB / dA. The visual system assumes a rectangular room, hence equal distances, and explains the size difference as a size difference of the people.
What the checks verify. (1) The projected corners of the skewed room coincide with those of the ordinary box. (2) Each of the six faces is exactly planar. (3) The measured image-height ratio of the two mannequins equals the depth ratio. (4) Each mannequin stands on the eye-ray of its ordinary-room position and really is 1.80 m tall.
Simplifications. Only geometry is modelled: one eye, no stereo, no head-motion parallax unless you move the head sliders (the illusion error grows as you do), no perceptual model of how strongly a real observer is fooled. The side-wall tilt coefficient 0.03 and the range of g are chosen for a pleasant room, not copied from a specific historical room. Idea credited to Adelbert Ames Jr.
This page
The skew formula, the figure placement and the four checks are the same code as on the 3D page (a small vector class replaces three.js here). The big picture is a Blender render of the box-like reference room from the eye point: because the skewed room gives the same retinal image, this one picture serves for every skew. The mannequins are Blender renders of the two figures drawn at the size and place the eye would see. Move your head with the sliders and the bottom-right panel shows how quickly the two rooms stop agreeing.
What to try
- Pick Ames room and compare the two mannequins in the picture: same true height, very different image height.
- Look at the plan view: the orange floor is a trapezoid, the dashed outline is the box your brain assumes.
- Slide Head sideways away from 0 and watch the orange wire frame drift off the dashed one while the error graph rises.
- Tick Walk figure A to and fro: A grows and shrinks as it crosses the room although it never changes size.