Toggle VR/PC mode
How would I go about to toggle VR/PC mode in a single application? I've tried running ExecuteConsolecommand(stereo on/off) but that wasn't enough.
I also thought changing the pawn might be sufficient as shown in the Figure below. So my question is, how can I do this? I need a multiplayer application where both VR and non-VR users can interact with one another
I wanted that functionality as well and I figured one way to do it. I recreated Epic's Multiplayer Tutorial (Link to playlist: https://www.youtube.com/watch?v=abmzWUWxy1U&list=PLZlv_N0_O1gYqSlbGQVKsRg6fpxWndZqZ∈dex=1 which I will not explain in detail) and added my modified HMDLocomotionPawn to it. Inside of my Lobby I have the "Lobby Game Mode"(LobbyGM) and the "Lobby Player Controller"(LobbyPC).
There is a node called "Enable HMD" which sets a boolean for (de-)activating your HMD. I used that node and just respawned the player with the "Respawn Player" event inside of the LobbyGM. Inside of the "Respawn Player" I just added a branch to decide if I want to respawn as a VR Player or as a non-VR Player.
This is the first time I did a response on answerhub and hopefully this was useful to you ;) My workaround at least worked for me and I could respawn as a third-person character or as a FPS character.
answered Mar 02 '17 at 11:03 AM
Does someone know if on 4.18 and after you can disable STEREO but keep HMD camera controls???
answered Jan 18 '18 at 12:12 AM
So, I used the response from VizualTek to create my own solution as his answer didn't fully work for me, although credits to you VizualTek! It helped me, so thank you! In case anyone else having this problem, here's a thorough answer.
Here's the main event, I bind it to the '§' key event.
I have a flipflop to toggle VR enabled/disabled. The collapsed nodes "EnableHMD" calls stereo commands "Stereo on", "HMD enabled" and "HMD sp 90" (sp is screenpercentage I believe, higher means better quality but more demanding).
This destroys and unpossesses the currently possessed pawn with reference to a player controller.
This spawns and possesses a new pawn. Note you need to use a pawn CLASS not reference. If you use a variable, don't forget to set the value to it, I accidentally just set the datatype first (lol) ;D
The collapsed nodes "DisableHMD" does "Stereo off" and "HMD disabled".
Finally, test it by package the program. It doesn't fully work in the Editor.
answered Mar 07 '17 at 12:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here