Do you see that the ball could be inside the cube, in front,
or even behind the cube? It is all in where you expect the
ball to be in this optical illusion.
A two dimensional picture of a three dimensional object does
not always give enough information. Regardless, the eye
will transform the image into a projected 3 dimensional
object.