Multiplayer split screen

Started by marcusant, January 02, 2014, 22:30:01

Previous topic - Next topic

marcusant

In my game I'm trying to have two different cameras that are bound to players (one of the left side of the screen, one on the right). I'm curious as to what would be the most efficient way to render multiple cameras at different coordinates and angles onto certain areas of the screen.

Cornix

You first set glViewport to one of the halfs of the screen, render everything from the perspective of the first player, then you set glViewport to the other half of your screen and render the perspective from the second player.