I am developing a VR unity project that was working perfectly fine with the Meta Quest 2, we were using OpenXR. I now have to switch over to a HTC vive and I have installed the package (viveport_sdk-1.7.21). When i try to launch the project it only shows the first frame of the scene then freezes the view. Did I download the wrong plugin or is there something I need to change with OpenXR?
Great question! Start with the runtime or device logs, see if there’s any intel to be gleaned in there.
If there is, act on it.
If there isn’t, then more debugging might be in order.
You might even need to start a blank VR project and get it working on the HTC Vive just to prove your toolchain is capable of making a functioning HTC binary. Otherwise you might waste a lot of time chasing ghosts in your project when something else is amiss.
Time to start debugging!
By debugging you can find out exactly what your program is doing so you can fix it.
Use the above techniques to get the information you need in order to reason about what the problem is.
You can also use Debug.Log(...);
statements to find out if any of your code is even running. Don’t assume it is.
Once you understand what the problem is, you may begin to reason about a solution to the problem.
I’ve been trying different things and this is what I found
- Seems to be a issue with the plugins or Unity, the headsets works everywhere else
- I tried it on different scenes and have the same issue, a “frozen” (might not be the right term as I think unity can’t find how to set up the vr, hence the frozen screen).
- I redownloaded the SteamVR plugin to no change.
- Switched over to OpenVR and disabled Oculus in it’s settings.
- I am received no errors in the console for this issue (was previously warning about a Oculus plugin, now resolved)
If there is further debugging that I missed please let me know, thank you for all your help.
Note the first two error messages in the consoles were for the test scene, was missing some objects.
Update: It now “works”. The head tracking and controllers show up after I changed the Player settings to allow OpenVR to be priortized over Oculus.