1. A method for generating a three-dimensional model, comprising: determining an initial position and orientation of an electronic device; recording images using a lens of the electronic device; detecting the movement of the electronic device during the recording; and associating, for particular moments in time, the images recorded and movement detected at the particular moments in time.