It's actually pretty easy. You will use multiple cameras or one rotating platform to film/photograph the object. From that point on it's just a matter of digitalizing the imagine and making it interactive.
The best method I've seen was using multiple cameras to capture all angles of the object.
Same goes for movies, which in the industry is called "The Matrix Effect".