There is no single answer to this question since the effect can vary depending on the photo or illustration. Generally, though, the 3D effect is achieved by adding a layer of depth to an image.