Has anyone made a "fake" VR plugin that allows limited VR development without any hardware?

Okay, so this might sound a little crazy, but has anyone written a UE4 VR plugin that simulates having a HMD + 2 motion controllers in software only?

I’m thinking this imaginary plugin acts like a software-only substitute for the Steam/Oculus/Gear VR plugins. When enabled, it tells UE4 that a valid headset + motion controllers are connected to the machine, and feeds the engine the necessary transforms + input from the virtual HMD + motion controllers. It allows the game to run in VR mode (stereo view), and creates a virtual HMD transform with motion controllers placed in the front left/right of that transform (so they can be seen easily in the HMD view). The player can slide the HMD around in virtual roomscale using WASD/cursor keys + mouse look, as well as adjust height with CTRL/SHIFT. It could also map some shortcuts to common motion controller inputs.

“Why!?” you ask? Mostly because I’m lazy and like flexibility. I develop VR stuff in UE4 at work, but every now and then I’ll get the opportunity to work from home. If I know in advance I’ll bring a headset home with me, but sometimes I’ll only find out at the last minute (eg. extreme weather), and I don’t have the hardware with me. Something like this plugin would allow me to continue developing in VR without needing an actual headset a lot of the time. You’d obviously still need the hardware for some stuff, but for a lot of scripting, gameplay logic, testing flow etc., I think it’d be really useful.

I could also see it being useful to people who can’t afford VR headsets, but still want to play around with VR in UE4.

I don’t imagine it would be a particularly complex plugin to write. What do you think?

1 Like

I like to know about this too, as I am waiting for the actual device (which fortunately we can borrow from our client) delivered to me. In the meanwhile, I like test out stuff, but it seems UE4 doesn’t simulate without the actual headset.

1 Like

You can quite literally do this with a first person pawn and a little custom logic. Why would it need to be a specialized plugin?

IE: First person pawn, map mouse buttons to your gripping logic and assign buttons to move your virtual hands around. I do this with a subclass of my main VR character that I override some functions in.

There is also the -EmulateStereo command but again…why would you want it to actually be in stereo for 2D testing? You won’t be seeing it in stereo so any perceived depth or scale won’t exist anyway, no reason to not run gameplay testing as flat and confirm in VR at that point.

but would is method work if I’m trying to see if everything works in the VR Preview?

You can use Microsoft’s WMR Simulator: Using the Windows Mixed Reality simulator - Mixed Reality | Microsoft Docs


MS-WMR didn’t work for me. saying it’s not compatible.

but i found vridge rifcat VRidge - Play PC VR on your Cardboard
is paid, but you can use it for free on 5 minute sessions (quite annoying tbh, you need to reopen each 5min)
but it has some kb+mouse control emulation, and you’d need an android device to do the head tracking.

the other one is ivry iVRy Driver for SteamVR on Steam
is also paid, but the free demo version will not close the session, instead it goes grayscale.
problem is it does not have controls, so either you need to enable a alternative input in your controller, or have a vr controller near. And the dev posted he’s not willing to implement kb emulation like vridge.

i found that having ivry installed messed with vridge, so try one at a time.
you can have vridge installed and use ivry all ok by launching it from steam library.
ivry is much easier to install.

both require you to install steamvr and install a device app on an android/iphone device.
then if you enable the steamvr plugin in engine you can use “preview in vr” button.