OSVR / OSVR-Unity

Package for authoring OSVR experiences with Unity.
Apache License 2.0
98 stars 38 forks source link

The Standard shader doesn't render when the HDK2 is connected #228

Closed demonixis closed 7 years ago

demonixis commented 7 years ago

Hi,

I have a serious issue with OSVR (works well on Oculus, Flat mode, etc...), I suspect that it's related to the UnityRenderingPlugin but I'm not sure. I use the latest HDK firmware (2.0 which is work really well), the latest OSVR Oneclick installer (0.8) and of course the latest Unity SDK from this repository (Nice job for the OsvrMirror script ;)). My PC uses an AMD RX 480 8Gb with the latest drivers on Windows 10 Creator Update.

Now let's talk about the issue, please take a look at those sreenshots

gunspinning vr_2017-04-25_20-43-49

gunspinning vr_2017-04-25_20-32-46

In my scenes, I use the standard shader, somes lights and of course lightmapping. All static objects are lightmapped (the ones who are white, are not lightmapped). As you can see, all non lightmapped object are white! If I change the shader, by an unlit (without lightmap) by example, it's fine, as you can see on the screenshot below

gunspinning vr_2017-04-25_20-44-05

The ground is still white because it's a terrain and I don't have changed its material.

Any idea about this issue?

DuFF14 commented 7 years ago

The fastest way to determine if this is an OSVR-Unity issue is to revert to the previous working version of OSVR-Unity and see if the issue goes away.

I see you also commented in a reddit thread that the Windows Creator update was working for you, but have you only noticed the issue after the Windows 10 update?

The title suggest this is an HDK2 issue. Do you see the same problem with HDK 1.4?

Which version of Unity are you using, and have you updated that recently as well?

demonixis commented 7 years ago

I can try an older version yes.

The Creator update works well for me yes, I just tested the sample and it works perfectly (installer 0.8). With Unity I have this issue.

This is an HDK2 issue, not tested with my other HDKs. I'll try that asap and update this thread.

I use the latest Unity version 5.6.0p2 (but I also have the issue with 5.6.0f3)

DuFF14 commented 7 years ago

If the lightmaps were baked with an older version of Unity, maybe try clearing and re-baking with the current version.

demonixis commented 7 years ago

Well, after a first test I can say that I've this issue with

So it's an issue which doesn't depend of the GPU.

demonixis commented 7 years ago

OK I know what is not working, it's the deferred renderer. If I switch to Forward, it works. So for now I'll force the forward renderer for OSVR users. But I recommand you to test this rendering path with the SDK.

DuFF14 commented 7 years ago

Opened a new issue related to this, https://github.com/OSVR/OSVR-Unity/issues/229