Unity 2019.4.3 steamvr asset pack - HMD/controllers not being used, defaults to stereo display
I'm using Unity 2019.4.3 (I must use this version for university). I have downloaded the latest version of Valve's SteamVR Plugin and I (believe) I am up to date with SteamVR.
For context I am using the Valve index and the knuckle controllers.
When launching the game I have the following view:
In the top left corner you can see controls that are used for the "Stereo Display (non head-mounted)" virtual reality SDK.
I can only assume that this is the default SDK used if something goes wrong.
Sound from the scene will play through the HMD, however when looking through it I am just stuck in the loading void (the scene with the dark mountains all around while a game is loading) and it says it is "waiting" for unity. It will do this indefinitely.
I have encountered two issues, one of which I believe is relevant to this problem and is a SteamVR warning that an interface is not found (105):
I have seen a couple posts about this but I have not found any solutions. This code is where the warning is thrown (I can't dig any deeper because it goes to the compiled OpenVR API):
// Verify common interfaces are valid.
OpenVR.GetGenericInterface(OpenVR.IVRCompositor_Version, ref error);
if (error != EVRInitError.None)
{
initializedState = InitializedStates.InitializeFailure;
ReportError(error);
ReportGeneralErrors();
SteamVR_Events.Initialized.Send(false);
return null;
}
(if you want to look at the code yourself, this is part of the CreateInstance() method in SteamVR.cs)
When using a CameraRig instead of a Player the scene will work in the HMD, it also still throws the warning of the interface not being found. All the camera rig is is a camera, it does not allow further interaction with the world, so just using that is not suitable.
I'm not certain if the issue with interfaces is the root cause, but that's why I'm posting here. I have no other leads to follow and me and a friend have been going nearly 4 hours trying to troubleshoot this and would greatly appreciate any advice.
A few questions to get started. Do you have SteamVR running? If so what version 1.9.16 or higher? Is you Vive able to launch other games?
SteamVR is running, I am on version 1.15.9. $$anonymous$$y index can launch other games. As far as I'm aware anything that works on the index/vive should work on the other.
Can't you just use CameraRig put inside or beside the Player so you have both, but only use the camera in the CameraRig? Where is the camera when you don't use CameraRig?
When it's just the player the controllers do not work either, it doesn't seem to be using SteamVR at all.
When CameraRig and Player are both used, I still have the controls listed in the top-left corner as if it were the "Stereo Display (non head-mounted)" virtual reality SDK, however I can't interact with anything using the mouse (which I could with just Player). I can look around in the H$$anonymous$$D with the camera rig, but it is no different than using just the camera rig alone.
As for your second question, the Player prefab comes with a camera.
Sadly I have exactly the same issue and can't get it working, I've the Unity version 2019.4.11f1 and newest SteamVR + OpenVR installed, also my controllers cannot get bound to the input, after generating it (I can see it in the live preview).
When i use CameraRig, I can only look around in VR. Switching it with Player prefab it jumps into simulation mode, both keep on showing exactly same errors you showed.
Well I have another VR class tomorrow, so me and my friend will probably bash our heads against the wall again for a few hours, if we find anything I'll be sure to let you and anyone else who finds this post know (which I hope you'll do for me if you solve the issue).
Answer by MichaelJarratt · Mar 16, 2021 at 04:51 PM
Well I never got an answer nor did I find a solution, but I was allowed to use unity 20.1.4f1, where it did work.
For anyone who finds this post, using a later version of unity works, but if you are stuck on an older version, I'm afraid you're on your own.
Your answer
Follow this Question
Related Questions
HTC Vive Pro crashes Unity, Steam VR reads "(unresponsive) Unity.exe" 0 Answers
pressing/turning something in VR to do stuff 0 Answers
Steam VR Teleport Reticle Off Set? 0 Answers
SteamVR/Pun Networking integration 0 Answers
Steam VR - The correct way for setting up body and head colliders? 0 Answers