Ibn al-Haytham's Pinhole Camera (Qamara)
Interactive 3D camera obscura built on Ibn al-Haytham's 11th-century optics experiments: trace real light rays through an adjustable pinhole and watch an object project an inverted, scaled image, with live magnification and geometric-blur readouts.
In the 11th century, Ibn al-Haytham used a darkened chamber with a small opening — the qamara — to prove experimentally that light travels in straight lines and that vision works by light entering the eye, overturning a thousand years of extramission theory. This simulator rebuilds that experiment in 3D: a lit object stands before a wall pierced by an adjustable pinhole, and every ray that survives the aperture is traced onto a screen behind it, forming a real, inverted, rescaled image exactly as similar-triangle geometry predicts. Sliders move the object and screen and resize the aperture; live readouts track magnification, image height and the geometric blur diameter, and a ray-bundle mode reveals the penumbra cones that show why a smaller hole sharpens the image at the cost of brightness.
Rebuild Ibn al-Haytham's 11th-century qamara experiment in 3D: trace real light rays through an adjustable pinhole and watch an object project an inverted, rescaled image, with live magnification and geometric-blur readouts.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install