I am making a 2 player fighting game, like Mortal Kombat. Recently I decided to make the fight take place in a totally 3d arena. My big problem now is the background. Objects from the background keep getting in front of the camera all the time and they block the view. So have to make background object hide or fade with alpha mapping, I will decide what is best later.
The camera is pointing all the time at the middle of where the 2 fighters are in the 3d world and is far enough to keep both fighters inside the visible area. Now when the fighters walk near the end of the backgrounds the camera will go behind background objects. I made a mock-up image to show the problem.
So my question is, what is the best way to determine if an object is between the fighters and the camera? Keep in mind that this check will be in the main loop so it has to be very efficient and fast.
Background objects could be either individual objects or one big object with multiple limbs, whatever will help most.
Thanks in advance.