Perceptual and cognitive factors in creativity