The virtual pupil