Page 1 of 1

Mutliplayer Dual screen: one for each player?

PostPosted: 16 Feb 2016, 01:41
by Xzu
Hi!

I'm new here and STK is the best opensource game I know!
I love it! :D
I use two screen with my PC.
I use arandr to set dual-screen, and run AMD drivers (because of my distro) with AMD Radeon HD 5450.
For now STK run without problem on screen one and just don't use the second.

I'm dreaming about an option set one screen for each player!
The first screen for player one, and the second for player two.

Then, a free software will do best than any commercial thing for multi-player game!
That will be very good!

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 18 Feb 2016, 01:04
by Auria
This is a good idea, but this is not possible at this time in STK.
Also, you would need a very powerful GPU to render the game twice at full resolution, meaning very few people could actually use that in practice.

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 18 Feb 2016, 10:49
by Xzu
Please, consider the very attractive potential (and maybe glory and fortune?).

I prefer play two screen in low resolution, bad details, no scenery and very hi fun, instead of the actual solution also for few people who have a very big screen.
(not usable for me) :cry:
Using xrandr, the implementation would not be so hard, no?

I insist, I insist!!!! :cool:

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 18 Feb 2016, 12:20
by GunChleoc
If you think it's not that hard, maybe you could have a go at implementing? FLOSS projects can always do with new developers :D

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 18 Feb 2016, 14:15
by Xzu
Ok!
So, first, I have to became a developer! :lol:
- - loading, please wait - -

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 18 Feb 2016, 20:29
by GunChleoc
Well, I didn't know if you had any coding skills, and you did imply that it was easy :lol:

So, we will have to wait then until somebody else finds the time.

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 19 Feb 2016, 10:56
by hiker
Hi,

note that supporting multiple screens involved a bit more than just changing screen layout (i.e. two splitscreen windows next to each other): both screens need a minimap etc.

I've actually done some work on this, still sitting in the 0.8-multiscreen branch. Obviously quite outdated (and one issue is how multiple screen are made available from the OS, since irrlicht itself does not directly support this).

Cheers,
Joerg

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 22 Feb 2016, 14:16
by deve
@Xzu you can easily configure two separate mices + two keyboards using xinput. And when LAN multiplayer in STK will be finished, you should be able to run two separate STK instances and connect to your localhost server (at least in theory :P ).

Create two separate windows on two different screens is easy. The problem is that we would need to handle two totally different local multiplayer styles and ideally for all platforms that we support (linux, windows, os x). I'm also not sure what about input handling. We usually get input events for active window. What if the second window will be the active one?

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 29 Feb 2016, 12:54
by Xzu
The problem is that we would need to handle two totally different local multiplayer styles

Ok, but that's already done with multiplayer-mode, no?

and ideally for all platforms that we support (linux, windows, os x)

No, no.. just for linux, first! :lol: Hey, that's super-TUX-kart ! ;)
(even if I think multi-platform is very good thing)

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 29 Feb 2016, 13:15
by hiker
Just note that my branch assumes that the OS handles the two monitors as one screen - so it's basically 'normal' splits screen, just instead of splitting vertically (in current split screen), it splits the windows horizontally. Plus it starts to add the necessary race gui HUD (e.g. kart order, time, ...) - but that's not completely finished.

Cheers,
Joerg

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 10 Aug 2017, 11:04
by Xzu
Any news for this amazing futuristic feature?
Today, many people have dual screen, so this will be an exclusive amazing feature because even ps4 can't do this!

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 20 Aug 2017, 14:59
by Xzu
If we consider windowed mode: what about just two windows for multiplayer mode?
Exactly like actual multi-player, but just in two windows instead of one.
Then we do what we want with our window manager, screen conf and OS.

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 21 Aug 2017, 00:19
by Auria
The current status is that there is no progress because we have no one to work on it (the few developers that contribute to STK are currently busy with other features)

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 21 Aug 2017, 01:07
by hiker
I did some work on it, it is atm stored in a really outdated separate branch (https://github.com/supertuxkart/stk-cod ... ultiscreen). So if someone wants to get started, that would be a good point. I can't remember the details now (check commit log), but the idea was to assume that the OS presents one large window (e.g. 3840x1200), and instead of stacking the two screen on top of each other (default in split screen), they will be shown next to each other. Plus each screen needs timer, mini map, kart display. Some or most of this is done, but it needs some tlc ;) Contributions welcome (though be aware that depending on OS you might not get one big virtual screen, and afaik there is no support to address a 2nd display in irrlicht).

Cheers,
Joerg

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 21 Aug 2017, 02:16
by QwertyChouskie
I should mention that https://github.com/supertuxkart/stk-cod ... 58c642ff03 is the only relevant commit in that branch. A good starting place would be re-basing that commit into master.

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 26 Aug 2019, 17:28
by Xzu
Hello everybody.
I'm just curious, is there any news?

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 26 Aug 2019, 18:41
by Alayan
We don't have anybody working on this for now, and while this would be a cool feature, it seems unlikely to happen soon.

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 28 Aug 2019, 23:19
by gsbhasin123
It seems to exist; Online > Enable Split screen and player handicaps (if I understand correctly).

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 04 Oct 2019, 02:15
by QwertyChouskie
gsbhasin123: That's split-screen, what the OP is looking for is to use two monitors, with both displaying views akin to split-screen, but with different monitors instead.

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 13 Oct 2019, 21:41
by gsbhasin123
Qwerty: Ah, I see. Can't this be accomplished on Linux by having two windows open and then using xdotool to switch focus to each window, or with controllers?

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 26 Nov 2022, 19:38
by Xzu
Hi there!

Any news?

Someone test hiker idea?

Re: Mutliplayer Dual screen: one for each player?

PostPosted: 27 Nov 2022, 02:04
by benau
use the option 'splitscreen horizontally' and scale the stk window across 2 screens should work