saki4510t / UVC4UnityAndroid

UVC4UnityAndroid
Apache License 2.0
77 stars 19 forks source link

UVC cam recognized but the image is pure black #8

Open eetteri opened 1 year ago

eetteri commented 1 year ago

Downloaded the repo, imported dependencies and scenes into the project. APK builds cleanly but when run in device with Logitech C930 camera all I get is pure black image on the cube. Any ideas how could I troubleshoot this or what might be going on?

[edit] Further exploring this, problem occurs on new Samsung A13 devices but eg. on bit older Xiaomi RedMi 10 it works fine. Not really familiar with Android development, is this something that can be remedied on this projects code level or is it some settings on the device?

eetteri commented 1 year ago

Still suffering from this, just noticed that all the devices that has this problem are using Mali manufuctred GPU and all the android devices working (so far) has had Adrone based GPU. I wonder if that is actually connected to the underlying problem.

prakyath-07 commented 1 year ago

Im also having same issue, it works only on this project. Doesnt work on newly created project. Im getting black texture

eetteri commented 1 year ago

That could be another issue if you have this working on your device on this example project. When you created new project/scene from scratch are you using the UVCDrawer prefab? If so, did you remember to drag your render target game object to the target list? Are you trying to render on raw image on canvas or on 3D mesh?

prakyath-07 commented 1 year ago

Im using their example scene in my project, it has render target. Still it doesnt work

zzanyoung commented 3 days ago

Today, If anyone runs into this issue, could you try setting your target API level to Android 12 or lower?