Apparatus for projecting a pattern includes a first diffractive optical element (DOE) configured to diffract an input beam so as to generate a first diffraction pattern on a first region of a surface, the first diffraction pattern including a zero order beam. A second DOE is configured to diffract the zero order beam so as to generate a second diffraction pattern on a second region of the surface such that the first and the second regions together at least partially cover the surface.