Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

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 alt text

Product Version: UE 4.15
capture.png (227.6 kB)
more ▼

asked Mar 01 '17 at 09:29 PM in VR

avatar image

243 7 5 14

avatar image Devgroup Mar 02 '17 at 09:58 AM

I've updated the code a bit, but it's still failing.

alt text

capture.2.png (249.3 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

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.

alt text

alt text

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.

more ▼

answered Mar 02 '17 at 11:03 AM

avatar image

111 2 3 6

avatar image Devgroup Mar 02 '17 at 11:19 AM

Amazing, I'm going to give it a try and I'll get back to you. Regardless of what, I am very happy of your response. thanks for taking your time. Hopefully it works ;D

avatar image Devgroup Mar 07 '17 at 11:35 AM

Yea I had some issues but finally got past most of them. But now for some reason when I call "Enable HMD", it returns false. I.e., it fails to enable the HMD. Any idea why? My HTC Vive is connected and fully functional.

Edit: I just noticed on the documentation, "Enable HMD" Is in the Oculus Library, is it possible it only works for the Oculus and not the HTC Vive?

avatar image VizualTek Mar 07 '17 at 02:11 PM

Yeah, I should have mentioned, that I use the Oculus Rift for this. So this is totally possible. I didn't work with the Vive yet, so I assumed that this might help as well, but if it's part of the Oculus Library, then that is no universal approach.

avatar image Devgroup Mar 07 '17 at 02:20 PM

Yea I believe that's the case. Either way as you've probably seen I resolved the isssue and I had help from your answer. I also watched through the YouTube series you referred to and used some of it as a reference to rebuild my networking for the better ;D

avatar image maxbrown Mar 22 '17 at 06:30 PM

@Vizualtek: maybe you could share an (almost blank) UE project that has this functionality already set up? That would help all Oculus users bigtime!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Does someone know if on 4.18 and after you can disable STEREO but keep HMD camera controls???

more ▼

answered Jan 18 '18 at 12:12 AM

avatar image

93 3 4 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

![Toggle VR event] Enable HMD Console commands DestroAndUnpossessControllersPawn SpawnAndPossessPawn Disable HMD Console commands

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.

more ▼

answered Mar 07 '17 at 12:58 PM

avatar image

243 7 5 14

avatar image Devgroup Mar 08 '17 at 09:04 AM

I must add this, I tested the "Enable HMD" BP function again and now it works. So I don't know what was failing previously. So I guess it's very possible to use the "Enable HMD" BP function as mentioned by VizualTek.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question