Split Screen
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
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.
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement