Can you package the test project and see if that will run in VR? You may need to pass -vr on the command line when starting the packaged project.
@TTimo , I'm still a considerable novice at Unreal -- been taking things one step at a time. :) I'll absolutely try and see if I can compile, package and run the test and see if it runs stand-alone on Ubuntu, then report back.
@TTimo, I was finally able to build and package a Linux version of the test VR levels that come with Unreal 4.16.1 for HTC Vive. I ran the built project in Terminal (both with and without the "-vr" parameter), but the level wouldn't register the HTC Vive. SteamVR showed no indication that a VR app was running.
I suggest starting SteamVR from steam before you launch your game (rather than relying on the game doing the launch).
You may also need to execute your game within the Steam runtime environment. This is done by using the runtime's run.sh script to start your game (~/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh).
Note that even once you get this working, performance of SteamVR+OpenGL on Linux is still going to be pretty poor due to it going through slow paths in the compositor (this affects Linux specifically, not Windows). The better option is to use Vulkan but UE4 doesn't have stable support for SteamVR+Vulkan just yet.
Sorry, I should have mentioned that I did start SteamVR before trying to launch the game. It was already active.
I'll test by running the run.sh script and report back.
I'm assuming the issue you wrote about explains the latency in programs like the new Steam Home app and others?
I am using CentOS7 with Unreal 4.16.1 editor. I am facing the same issue of VR Preview grayed ot. I have launched steamVR and all the headset, controllers and base stations are showing green which means that all are up and running. After launching steamVR, I launched UE 4.16.1 editor , in the plugins, steamvr is enabled. But still the VR preview is grayed out. Any help to resolve the issue is appreciated.
I was able to reproduce this problem of 'VR Preview' greyed out and identify the correct solution. You need to start the editor within the Steam runtime environment:
~/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh ./Engine/Binaries/Linux/UE4Editor-Linux-Debug /opt/Valve/TestVR/TestVR.uproject -opengl4 -sm5
(TestVR is a test VR map out of the starter content)
It will 'work' in the sense that 'VR Preview' won't be greyed out anymore. Performance will be terrible because the GL path is sub-optimal, and you will likely run into other bugs besides that.
If you don't launch the editor in the steam runtime environment, VR Preview will be greyed out.
Thanks for your valuable suggestion. It works. Further, can you please suggest me on the steps to improve the performance. Thanks in advance.
You will need to wait for this: https://github.com/KhronosGroup/OpenGL-Registry/pull/65
More specifically the extensions need to make their way into the GL drivers (NVidia and radeonsi), and SteamVR will need to roll out the support to leverage it.
Alternatively you can also keep an eye on UE4's SteamVR+Vulkan support which will bypass those GL issues - but in this case more work in UE4 is needed for support and stability.
NVIDIA just released a new Vulkan driver that implements the new extensions.
Thanks a lot for the info
On Wed, Jun 28, 2017 at 5:03 PM, Kristian Kriehl [email protected]
wrote:
NVIDIA just released a new Vulkan
https://developer.nvidia.com/vulkan-driver driver that implements the
new extensions.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ValveSoftware/SteamVR-for-Linux/issues/55#issuecomment-311633835,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab6dECKRq30rgnb39RoTFXZe-IaCuEhiks5sIjocgaJpZM4NoHtg
.
Your system information
Please describe your issue in as much detail as possible:
BEHAVIOR
When running Unreal Engine 4.16, creating a VR game, opening the sample projects, and attempting to preview them in VR using the HTC Vive, you can't, the options are greyed out. I checked on the Unreal forums, and they said it had to do with SteamVR software (see here: https://forums.unrealengine.com/showthread.php?138679-4-15-0-SteamVR-and-Linux-Ubuntu-quot-VR-Preview-quot-greyed-out&p=714532#post714532).
("VR Preview" option is greyed out)
EXPECTED BEHAVIOR
To be able to test in-game levels using the Unreal Engine 4.16 with HTC Vive and SteamVR in Linux.
Steps for reproducing this issue: