In hollow man they also had a robotized camera. They could film a shot with the actors (a cameraman controlled the cam manually). Then they could replicate the exact same camera movement without the actors again (motors, hydraulics, whatever controlled the camera). This way they got clean separate background and foreground elements.