zappar-xr / universal-ar-unity

58 stars 13 forks source link

no display data. no buffer in display. #22

Open feipinxiang opened 1 year ago

feipinxiang commented 1 year ago

Describe the bug [zcv::Log][2023-06-19 11:54:24] Start [zcv::Log][2023-06-19 11:54:24] D3D11 graphics device loaded [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO pipeline_t initialized [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO camera_source_t initialized [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO image_tracker_t initialized [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO loading target from memory: 335036 bytes [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO image target loaded [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO no buffer in display [zcv::Log][2023-06-19 11:55:08] [Zappar] INFO no display data

To Reproduce Steps to reproduce the behavior:

  1. Used UAR version '3.2.2'
  2. With Unity version '2021.3.20f1/2020.3.46f1' using Built-in Render Pipeline and build platform as windows

step: 1.import git package 2.import examples project. 3.open ImageTracker scene. 4.push play button in editor and get the error message

Desktop (please complete the following information):

Project And Log file:

ZuanTouAR.zip

feipinxiang commented 1 year ago

I just noticed that it doesn't support building for the Windows platform. I switched to android platform and the error still occurs.

nfynt-zap commented 1 year ago

Hello @feipinxiang,

The no buffer in display and no display data points to issue with accessing camera frames. Can you check if your in-built or attached camera is enabled and accessible? From editor you can check whether ZapparCamera component has any dropdown list of active camera devices or not.

Also, you should be able to do In-Editor testing with both Windows and Android platform, it's only the standalone build (Win or Mac) that we don't support. Still switching to target platform is recommended, you can read a bit more about platform support here.

feipinxiang commented 1 year ago

The webcamera can be recognized.

Hello @feipinxiang,

The no buffer in display and no display data points to issue with accessing camera frames. Can you check if your in-built or attached camera is enabled and accessible? From editor you can check whether ZapparCamera component has any dropdown list of active camera devices or not.

Also, you should be able to do In-Editor testing with both Windows and Android platform, it's only the standalone build (Win or Mac) that we don't support. Still switching to target platform is recommended, you can read a bit more about platform support here.

image

nfynt-zap commented 1 year ago

Does this name of EditorCamera matches with the name shown in your device manager app. I am suspecting the ? symbol should be © here.

It's likely the MS Media Foundation encountered some issues while enumerating supported video formats or UVC class for this webcam. You can try upgrading device driver if you think it might help or you may try editing the EditorCamera property from editor by running it in Debug mode.

Note that this shouldn't effect your build... you can still build it for Android and test. Or try another webcam in-editor if you have one handy. I'll add this to my list of things to do and will update this thread if I come across anything more.

feipinxiang commented 1 year ago

Yes. The full name of the camera is "Microsoft® LifeCam Studio(TM)". I switched to another new camera and the camera image can be displayed normally. image

giganticlab commented 2 months ago

USB2.0 HD UVC WebCam not work

rcstamp commented 2 months ago

Still an issue. Imported a blank project and the Zapper SDK, my webcam appears (Brio Logitech 4K) but the feed is black