UVC4UnityAndroid icon indicating copy to clipboard operation
UVC4UnityAndroid copied to clipboard

UVC cam recognized but the image is pure black

Open eetteri opened this issue 1 year ago • 5 comments

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 avatar Jun 02 '23 07:06 eetteri

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.

eetteri avatar Jul 26 '23 14:07 eetteri

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

prakyath-07 avatar Jul 26 '23 14:07 prakyath-07

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?

eetteri avatar Jul 26 '23 15:07 eetteri

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

prakyath-07 avatar Jul 27 '23 05:07 prakyath-07

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

zzanyoung avatar Aug 21 '24 08:08 zzanyoung