Added code to do 3D rotating videos