Gistix / portal2vr

Portal 2 VR Mod
760 stars 21 forks source link

Add a local cooperative. #96

Open DygDyg opened 1 year ago

DygDyg commented 1 year ago

It would be interesting to try to implement a local cooperative, so that 1 player controls from a computer, the second with VR on one PC. I tried to launch a cooperative, it worked, but the picture was not displayed on the monitor, and VR controlled both characters at the same time.

Juliasmatius commented 12 months ago

Cool idea but would need a large rewrite and lots of resources from the pc.

ngeraks commented 4 months ago

I tried this today. We can load into the tall-bot, we can move and play with it, but the HMD also controls the ball-bot. WASD would control only the tall-bot. In principle the in_forceuser seems to not be working, the hmd controls both. So that is first. Second: There is a way to play co-op on a single display described here: https://developer.valvesoftware.com/wiki/Testing_Portal_2_Co-Op_Maps_Alone Notice the bottom, where a command is used to fullscreen either player's viewpoint. I am not aware how the directX to vulkan is done, but if we have a couple of directX renders for the split screen to be achieved, there could be a keybind for dxvk to hook onto one or the other, no?