an optical illusion is a visually perceived image that is deceptive or misleading so they work in different ways. I have seen them in paper where you look for something and see something else until...
Eye creates images where ever you are looking. By the color, darkness, brightness, its shape etc. the brain can tell you that its 3D, Moving, Standing and etc. In case of illusion, it depends because...