When I was tasked with creating a spin/pan/zoom tool for a CAT mining application, I created SPAZM (spin pan and zoom plugin for jQuery).  Just feed it a library of images from every angle and desired zoom level and run it.  This plugin supports touch too for mobile browsers.

You can get spazm.js from GitHub here: