This is a great question! And not one exclusive to the Oculus Rift. I had previously pondered about how one would go about match moving panoramic footage for an interactive short film I was going to develop. In all of my research it doesn’t seem as though there are any tools built specifically for tracking this type of footage.
There were two potential solutions I came up with that I never put into practice, but here they are anyways:
Solution 1:
Track all cameras individually/unstitched in a tracking software (I use PFTrack). You can use the first camera track’s position/rotation data as a “hint” for the second camera track, and then use the second camera’s data as a hint for the third and so forth. You’re going to want to align each of the cameras to each other in virtual space as they were set up in real world space. There are tools for this in PF Track but I’m not sure what software you would use. You then export all of your cameras to your 3D app or AE. You animate whatever magic you’re trying to have happen and render it out separately from each 3D camera view. Then you stitch each of those renders back together using the same technique that you stitched the original footage together and if all works out perfectly for some reason it should line up! And Composite away!
Solution 2:
If your individual graphic elements will only be localized to a certain area in your panoramic footage, you may be able to get away with rendering out those portions of your panoramic video as regular HD footage (essentially cropping in to the 16:9 dimension you desire) and then do a camera track on just that portion, add your effects, render out, and then bring that render with your effects back into the panoramic composition and line it up to that original portion you rendered out.
Because this is such an unusual request, I doubt there are any easy tools out there for this kind of problem. And without any camera data or scene surveying recorded on set to make the tracking easier, it could prove to be extremely challenging to get anything usable. However if you find a solution please post about it, I would love to know how you end up solving this!!
Cheers,
Philip. Bowser