Advertisement Jump to content
Sign in to follow this  
NickyP101

OpenGL Split Screen

This topic is 4641 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!