by projecting a pattern on the object