Presets
Playback
Sheet 1
Sheet 2
Slide, zoom, rings
Sliding sheet 2 shows the amplification of the moire.
Pattern
Line gratings, dot lattices or concentric rings.
Layers
Model checks
The science
Why two fine gratings make one coarse one
Put two sheets of parallel lines on top of each other and the light that gets through is the product of their transmittances, T(x) = t1(x) · t2(x). Each grating is periodic, so it is a sum of waves cos(ki·x) with wave-vector ki = (2π/pi)(cosαi, sinαi). A product of two cosines contains the sum and the difference frequencies, cos A cos B = ½[cos(A−B) + cos(A+B)]. The sum is finer than either grating, but the difference wave k1 − k2 can be tiny. Your eye (or a camera lens) averages away the fine lines and sees only that slow wave: the moire fringe, with period Λ = 2π / |k1 − k2|.
For two line gratings turned by θ this gives Λ = p1p2 / √(p1² + p2² − 2p1p2cosθ); equal pitches give Λ = p / (2 sin(θ/2)) and parallel gratings give Λ = p1p2 / |p1 − p2|. The fringes run perpendicular to k1 − k2.
Moire amplification and parallax
If sheet 2 moves by a distance d along its own normal, the phase of the beat changes by k2·d, so the fringes slide by d Λ / p2: a movement of a hundredth of a millimetre becomes a visible shift of centimetres. This amplification is the working principle of moire strain gauges and of moire-magnifier security prints. In the 3D lab the two sheets are separated by a gap g, so a camera at elevation ε sees sheet 2 displaced by g / tan ε against sheet 1: the fringes move when you orbit the camera, exactly as they do on a real stack of transparencies.
Honest simplifications: the gratings are ideal soft square waves with 50 percent duty; diffraction, the thickness of the acetate and the lens of the eye are not modelled (the "eye view" is a Gaussian blur); the on-screen sampling of the texture adds its own, genuine, aliasing moire when the pitches are near the pixel size. Lengths in millimetres are the physical size of the printed sheet.
What to try
- Drag Slide sheet 2 by a small amount and watch the fringes move many times further: the amplification L / p.
- In the frequency plane find the yellow circle k1 - k2 (small and close to the centre) and the orange one k1 + k2 (far out): the FFT of the picture agrees with the prediction.
- Switch to Dots for a lattice moire, or Rings and move the centre offset to see circles and hyperbolas.
- Tick Eye view: the blur removes the fine lines and leaves only the moire.