The Origins of Perceptual Knowledge