A method and devices for displaying images, the method comprising: receiving an image, the image comprising depth information; determining at least a first group of pixels and a second group of pixels, based on the depth information; and displaying the first group of pixels at a first focus position of the projection device, and the second group of pixels at a second focus position of the projection device.