ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
353 stars 82 forks source link

Upgraded to Unity 2018.2 now the display flickers really badly #52

Open andybak opened 6 years ago

andybak commented 6 years ago

Not sure whether it was the Unity upgrade as I also upgraded the Wave SDK.

A simple test scene shows severe flickering on a HTC Focus. Removing the VIU prefab and using the prefab from the Wave SDK fixes it.

lawwong commented 6 years ago

Thanks for the report! Wave VR team have known the issue and are working on that. Seems like Wave VR has a render issue with Unity 2018.1 causes black-out/flickering when first time running the apk.

BTW, you mean you worked around by replacing the prefab? Could you share your fixed scene?

andybak commented 6 years ago

I worked around it by not using VIU. So it's only a workaround in the sense that it proves the issue is with VIU and not the Wave SDK itself.

At this point we've switched to targeting the Lenovo Mirage so it's not urgent from my perspective.

ryklin commented 5 years ago

I'm experiencing this problem as well. Have not been able to find a good workaround.

The flicker is present when the app first launches; either after the Focus is booted, or the app is first deployed from Unity. Exiting the app through the home button and then launching it again is a temporary solution that eliminates the flicker. That's why I don't think it's necessarily a Unity 2018.1 rendering issue but something in the VIU or WaveSDK code.

I've tried using the WaveVR prefab that comes with the WaveVR SDK, as shown in the corresponding getting started help reference (https://hub.vive.com/storage/app/doc/en-us/UnityPluginGettingStart.html). Replacing the UnityPlugin Prefab (VIU ViveCameraRig) with the WaveVR-Head, doesn't work. In fact that makes all the VIU samples crash. I'm guess the SDK prefab is only for the HTC Vive and not the HTC Focus.

I also tried editing the VRCameraHook.cs file, but nothing I did helped.

I will try down grading Unity, but I doubt that will help. Will let you know if I find anything else.

The last message regarding this was posted 3 weeks ago, so I'm assuming your team is not prioritizing this. Maybe I should switch to the Lenovo Mirage as well?

wirelessdreamer commented 5 years ago

I've been experiencing the same here as well. Between that and the lens distortion issues, targeting focus is currently impractical, its a shame, if not for 2 major issues it has a lot of potential.

BioeJD commented 5 years ago

I've had the same issue for a while now (Unity 2018.2.5, VIU 1.9.0).

I only see the issue when using the VIU prefab. I don't see the issue with the prefab from the Wave SDK.

One small detail that could help narrow down the issue: I can get the flickering to stop without restarting the app. If I take off the Focus headset and wait for the screen to go dark, then I put the headset back on so the app resumes, the flickering is then gone.