PROJECT 06 / SCALE / TWO POINTS OF VIEW
Mini
ature.
A WebXR scene with a classroom table, 60 by 24 inches. On it stand a small house and a model of me at 1/12 scale, moved by my own head and hands. From where I stand I can pick the house up with the controller beam. Then I switch modes and become the model: the table is a 60-foot platform, I walk to the door with my feet or a thumbstick, it swings open, and a switch inside lights the lamp. When I switch back, the windows are still glowing.
How the scene works
- My body is drawn at full size under one node. That node's matrix shrinks it twelve times and carries it to the table.
- The table and the house sit under a second node. In the second mode it gets the inverse of the same matrix, so the world grows twelve times around the model's spot, which lands under my feet.
- Walking moves that spot, not the camera. The door, the lamp and the house's position are the same data in both modes.
INTERACTIVE STUDY
Interactive study
01—05Seeing it, and being it, in five levels
A step-by-step course that runs the scene's own code in the browser: the scene graph, the shrinking matrix, its inverse, walking and the door, grabbing and the switch.
Inches and feet, and the scene graph split into a world that can grow, a body that can shrink, and controls that never change size.
02The shrinking matrix↗T(spot) · S(1/12) · T(−origin), one factor at a time, and what goes wrong in another order.
03Being the miniature↗Why the inverse of the same matrix, put on the world, shows you exactly what the model sees, and the one point both modes agree on.
04Walking and the door↗A thumbstick that moves the origin instead of the camera, a door that turns about its hinge, and a distance measured in table inches.
05Grabbing and the switch↗Holding the house at the offset where you caught it, keeping it on the table, and a switch whose hit box must grow with the world.
The pages run the scene's own modules: miniatureModel.js, house.js, avatarBody.js and the Coach project's coachAvatarPose.js. In place of the engine, a small stand-in node multiplies the same matrices and a 2D canvas draws the boxes. The full scene is miniature.js.