Overview
This guide has information about VR in Mega Rats and tips to help you get Mega Rats to work with your VR Headset.
VR in Mega Rats
Virtual Reality in Mega Rats consists of a few main pieces.
- Head Tracking
- Stereoscopic Rendering
- Stereoscopic Adjustments
SteamVR / OpenVR Launch Mode
- HTC Vive
- Oculus Rift
Make sure you have installed SteamVR using the Steam client.
When Mega Rats is started with “-openvr” command line option (or Steam Launch Option), Stereoscopic Rendering and Head Tracking should be activated through SteamVR.
OSVR Launch Mode
- HDK
- HDK2
OSVR is now installed by default by Mega Rats.
When Mega Rats is started with “-vr” command line option, Stereoscopic Rendering and Head Tracking should be activated though OSVR. For head tracking to function, the osvr_server.exe needs to be running. Mega Rats will attempt to automatically start osvr_server.exe when it is run with the “-vr” command line option. In addition, at any time you can press “F9” to toggle Stereoscopic Rendering on and off (OSVR Launch Mode Only). This will also attempt to start osvr_server.exe as it is required for head tracking.
Once you have Mega Rats loaded and rendering in stereoscopic 3D there are some options you can adjust with the keyboard to compensate for your VR headset’s geometric variation (OSVR Launch Mode Only).
- Numpad +/- Changes Interpupillary distance which will correct for “double vision”
- Shift and Numpad +/- Correct for Aspect Ratio Squash and Stretch
- Ctrl and Numpad +/- Change “Sense of scale” using Virtual Eye Separation of the scene cameras
Direct Mode and Extended Mode
Direct Mode is not yet supported for OSVR Launch mode in Mega Rats but will be coming soon.
Extended Mode is the only currently supported method using OSVR Launch mode.
Tip: In Extended mode you should be able to see your desktop in the HMD. If you can see your desktop in the HMD it is likely Mega Rats will show up correctly.
Distortion Correction and VR controller support is coming soon for Mega Rats.
Finally, there is a known issue where when starting the osvr_server.exe where it will kick you out of full screen. If this happens, click back on Mega Rats to refocus the application and restore full screen. To prevent this from happening, make sure osvr_server.exe is already started before starting Mega Rats.