Overlapping objects in a painting can create a sense of foreground and background while varying the scale of objects can create a sense of distance. Perspective can create the illusion of depth by drawing lines that converge towards a vanishing point. Shading and lighting can also be used to create a sense of form and volume in a painting.