Free-space and periodic optics