stereolabs / zed-unity

ZED SDK Unity plugin
https://www.stereolabs.com/documentation/guides/using-zed-with-unity/introduction.html
MIT License
248 stars 57 forks source link

Black screen after updating to ZED SDK 3.0.2 for zed mini #104

Closed kaszim closed 4 years ago

kaszim commented 4 years ago

After updating the ZED SDK and the unity plugins to the latest version none of the examples work. All binaries under "C:\Program Files (x86)\ZED SDK\samples\bin" works, as well as "C:\Program Files (x86)\ZED SDK\tools". There seems to be some issues with the updated unity plugin.

Everything worked fine under 2.8.

kaszim commented 4 years ago

The issue seems to be within the ZED_Forward_Lighting shader. Simply overwriting the current version with https://github.com/stereolabs/zed-unity/blob/c1c206b2e50e1440f730b2c0765fd4aac63eaf83/ZEDCamera/Assets/ZED/SDK/Helpers/Shaders/Lighting/ZED_Forward_Lighting.shader resolves the issue.

obraun-sl commented 4 years ago

Can you provide the Unity version you are using (2018.xx, or 2019.y) ?

kaszim commented 4 years ago

I am using Unity version 2019.3 under Windows, with an Oculus Rift S (if that makes any difference for shaders).

kaszim commented 4 years ago

Resolved by #106