Presets
Playback
Group
Wythoff point
Optics and motion
Camera
Layers
Quality
Model check
The science
Reflection groups
Three plane mirrors through one point generate a finite reflection group G when the angles between them are pi/mij. With unit normals ni the Gram matrix is ni.nj = -cos(pi/mij) (Coxeter matrix). Each reflection is Ri = I - 2 ni niT; all products of them form G. This page uses [3,3] (A3, tetrahedral, 24 elements), [3,4] (B3, octahedral, 48), [3,5] (H3, icosahedral, 120) and the prism groups [n,2] (4n).
The mirror chamber
The mirrors cut the sphere into |G| congruent spherical triangles with angles pi/p, pi/q, pi/2. By Girard the area is the angle excess pi/p + pi/q + pi/2 - pi, so |G| x area = 4 pi: exactly the number of images you see. An object in one chamber appears in every chamber; chambers an odd number of reflections away show the mirror image (the orange gems are drawn with a negative-determinant matrix).
Counting reflections
The number of group elements needing k reflections (shortest word) is the coefficient of qk in prod (1 + q + ... + qd_i - 1) where d_i are the degrees of the group (A3: 2,3,4; B3: 2,4,6; H3: 2,6,10). Each bounce loses light, so images after k reflections are drawn with brightness Rk; that is why a kaleidoscope fades towards its edge.
Wythoff polyhedra
The orbit of a point x = sum a_i F_i (a_i = distance from mirror i, F_i the dual basis) is the vertex set of a uniform polyhedron: cube, octahedron, truncated icosahedron (soccer ball), rhombicuboctahedron ... Faces come from the convex hull of the orbit with coplanar points merged; Euler's relation V - E + F = 2 is checked live.
Unfolding a mirror path
A ray that bounces inside one chamber is the folded image of a straight great circle through all chambers. The white gem is the image whose chain of reflections equals the accumulated product of the bounces, so it moves in a straight line while its neighbours mirror it.
Honest simplifications
Images are drawn as copies placed by the group elements, not by recursive ray tracing; mirrors are perfect planes with a single reflectivity R used only for brightness; no wave optics or refraction. A real tube kaleidoscope uses two or three mirrors in a 2D wedge (see the 2D companion) - the 3D mirror chamber is the idealised spherical version. Not affiliated with any product.
Model checks: group order from closure vs closed formula; |G| x chamber area = 4 pi with an independent Monte-Carlo area; Poincare polynomial; mirror count and Euler characteristic.