I'm new on this website, however I tried to do the best I could to research an answer to my question on the web.. but still I could not find anything that was really helpfull.
So here is the thing, I'm trying to a simple 3D car game, and I'm just begining. I am currently working on the splitscreen and the problem I encountered was this:
I actually CAN see both "ships" (one in the right viewport, one in the left), but I can't seem to find a way to Draw both ships in both viewports, but with their own camera. So yes I've also created two different chase cameras, one for the left viewport and one for the right.
Can anyone guide me in any way ? If you need any code to help you answer, I'll paste it and explain (only problem is that it's in french).
Thank you so much !
Updated answer from discussion:
It sounds like you need to change your constructor to accept not only the "target" car but also all other cars on the track. e.g. View(targetCar, allOtherCars)
I'd suggest: Create a new method that takes the camera position / translation and render all the cars from that perspective. Then, in the draw method, call the new method with camera associated with the current viewport.
Original Answer:
I'm having trouble understanding exactly the effect you're after but on the assumption that's just a variation on the split screen idea, here's one way to tackle the problem:
In the game initalisation:
In the Draw Method:
Set the graphics target to player one's render target, render the scene from player one's camera perspective... and then do the same for player two.
Draw both player's render targets to the screen.
If you're not aware of RenderTargets then the following example from Microsoft may help: http://msdn.microsoft.com/en-us/library/ff434402.aspx