Split Screen

Started by
1 comment, last by noNchaoTic 17 years, 11 months ago
Hey all, just wondering if someone could point me in the right direction on how i might go about making a 2 player option in my game, like a split screen. Any hints/tutorials would be greatly appreciated!! Im currently using Java with OpenGL
Advertisement
Look into using glViewport. I think that'll work.

What you want to do is be using 2 (or more) viewports. So, you'll set up the first viewport, then draw the perspective of the first player, then you'll set up the second viewport and draw the perspective of the second player.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
i think some people render would render the first shot, read it to a texture (so to get FSAA), then render the 2nd view do the same again, then use pre-transformed quads and textures. Obviously your going to want to change the texture co-ordinates based on how your splitting the screen. But that should work, also multiple viewports will work fine if you want a simpler solution. :-) Hope this helps.
Steven ToveySPUify | Twitter

This topic is closed to new replies.

Advertisement