mobfishgmbh / Cardboard-VR-Unity-SDK

Apache License 2.0
56 stars 11 forks source link

Unity 2022 - VR mode error "RenderTexture.Create with shadow sampling failed" #103

Open onetech-dev opened 1 year ago

onetech-dev commented 1 year ago

Hi @cdytoby , @rohantipare , @cai-mobfish

In Unity 2019, everything works fine!

But when I upgrade Unity version up to 2022, it has error in VR mode. See image attachment below

1) Logcat: image 2) In Unity: image

This function SetupRenderTexture() is call in Awake() function.

Can you help me resolve this issue?

Thank you very much!

onetech-dev commented 12 months ago

Update: I upgrade Unity version up to 2022 because I want to upgrade Google Play Billing version 5. I have downgraded Unity 2020 => It worked fine. Nothing happen! Also, it worked fine in Unity 2023 (Tested on Unity 2023.1.0f1), not test on Unity 2021 yet. Maybe it also fixed on Unity 2021.3.8f1 and 2022.2.0b8 but I haven't tested yet.

I will notify when I have information.

Please do not close this topic.

Thank you!

cdytoby commented 12 months ago

Hello,

First, thank you for using this. I'm surprised that after that long time, there are still people using this repository. I haven't used Unity for a long time already, since I changed my job a few times already. (I'm currently working in another different area, still c# programming, but different business). So I'm not familiar with anything new with Unity or even game engine development as a dev.

I suggest you switch to official cardboard plugin if possible, since that plugin is still updating rapidly, and it already contains critical features that doesn't have when this repository was growing. (as long as they work). Otherwise, I'm afraid you're on your own.

But feel free to create a fork and continue improving this repository if you're able to. I'm also not closing this topic.

onetech-dev commented 11 months ago

Hi @cdytoby,

Thank you for your reply!

I have read this statement from you: https://github.com/mobfishgmbh/Cardboard-VR-Unity-SDK/issues/93 but currently I'm still using it because it's easy to use.

I'm also planning switch to official cardboard plugin later.

Once again thank you and hope you will be courageous on the way to success!