Help with 3D camera, can't work out this effect
Hello, i'm really stuggling trying to re create this effect (see link) of the polaroids spinning around the girl. I've tried to recreate this effect and i can get the polaroids to spin in a way that makes it look 3D. I know i need to use the 3D camera, however i dont undertand how its been masked to make the polaroids look like they're going behind and in front of the girl. Absolutely ANY help would be appreciated, or a detailed explanation or any useful youtube tutorials, just can't seem to get my head round how this works. Thank you!
These are two very similar videos or the same effect:
