Topic locked

Black screen/video feed, extreme lag (METAL)

March 20, 2016 - 7:01am #1

Hey, recently updated vuforia to latest one (using migration guide), and we're having issues with latest SDK (unity package 5.5.9) and Metal GAPI - black screen instead of video feed, and whole UI is very laggy. 

When switching GAPI to GLES everything works great.

Any ideas?

PS. Unity 5.3.2f1, Vuforia unity package 5.5.9, any iOS device

Black screen/video feed, extreme lag (METAL)

March 21, 2016 - 11:18am #5

Glad it's solved.

 

Black screen/video feed, extreme lag (METAL)

March 21, 2016 - 11:13am #4

Found source of this issue:

We're using MMT and Cardboard SDK, and they require custom AppController (MMT for registering render plugin, cardboard for on boarding dialog view)

What we've ended up is adding all 3 plugins (Vuforia, MMT, Cardboard) were setted up in one class, and we've missed key part of vuforia setup:

extern "C" void VuforiaSetGraphicsDevice(void* device, int deviceType, int eventType);
...
- (void)shouldAttachRenderDelegate {
UnityRegisterRenderingPlugin(&VuforiaSetGraphicsDevice, &VuforiaRenderEvent); }

So, thank you, issue is resolved.

Black screen/video feed, extreme lag (METAL)

March 21, 2016 - 9:34am #3

Hey, thank you for your responce.

- Pure unity (but we're using 3rd party plugins: Mobile Movie Texture, Cardboard SDK), from our side there's no native code at all.

- Image Targets sample works without any issues.

- Simple plain/default ARCamera (mono).

Black screen/video feed, extreme lag (METAL)

March 21, 2016 - 8:32am #2

Hi,

the Logs show messages about setting Rendering Mode to OpenGL ES 2.0, followed by a tentative to initialize Metal layer, which looks suspicious;

  • is your application using pure Unity setup, or are you integrating with native iOS code ?
  • is the issue reproducible with the Image Targets sample (or other sample app) for Unity ?
  • is the issue seen when using a Stereo camera or mono ?

 

Topic locked