Log in or register to post comments

VideoBackgroundConfig Size of 0

November 24, 2015 - 12:10pm #1

I set up a cloud reco scene with custom content manager, video panel and other assets for deployment to iOS. The build was working well on-device, save for some UI elements being out of scale, easily fixed with a canvas scaler. 

Upon changing the panel scale and re-building to an iPhone, Vuforia will initialize on the device and the tracking will run, however there is no video background, even when the settings are reverted. Augmentation objects appear and be guided by tracker movement, but on a dark screen. In-editor, the AR works without any issue.

hat's odd to me is I was not changing any of Vuforias settings when this occurred, and it now happens even in new builds using default scenes and re-imported packages.

 

The error, on ARscene's open (xCode debug log):

[AVCaptureVideoDataOutput setVideoSettings:] - videoSettings dictionary contains one or more unsupported (ignored) keys: (

    Height,

    Width

)

cameraDeviceGetVideoMode

2015-11-24 14:28:41.967 edge[4457:1921873] VideoBackgroundConfig with screen size of zero received, skipping config step

I have tried resetting the scene to its previous settings and updating Unity, along with running the build on another Mac and iOS device. Has anyone else had a similar issue or any workarounds to suggest?

Thanks

 

VideoBackgroundConfig Size of 0

November 25, 2015 - 8:30am #5

".....Which ones are crucial if we are using ARCamera and CardBoardPrefab in different scenes?  Will these code changes prevent the cardboard or ARcam from working separately?....."

 

  •      is the scene with the ARCamera relying on Stereo (cardboard) visualization, or is it a pure AR (non-stereo) scene?
  •      in which order do you intend to switch between those scenes ? (Cardboard to AR or vice versa, or both directions)?

 

 

VideoBackgroundConfig Size of 0

November 25, 2015 - 12:30am #4

One question: These changes seem to primarily be for implementing Cardboard within an AR scene.

Which ones are crucial if we are using ARCamera and CardBoardPrefab in different scenes?  Will these code changes prevent the cardboard or ARcam from working separately?

Thanks again

VideoBackgroundConfig Size of 0

November 24, 2015 - 11:55pm #3

Alessandro, thanks for the reply. I eventually re-installed unity and xcode, the real worry was yesterday when even the un-altered Vuforia packages would not work. They do now, up until package installation

We are using cardboard, I'll follow the integration guide. What's odd is this issue did not appear until a canvas change and a rotation of a plane in the AR scene, leaving the VR and supporting files untouched. 

Last note: the "screenSize 0" xCode Error appears even in the default demo when functioning properly.

Thanks for the help! 

VideoBackgroundConfig Size of 0

November 24, 2015 - 11:46pm #2

Hi,

The black video background might be caused by one of the following issues:

OR:

  • you might be using some 3rd party libs (e.g. Cardboard) in your project assets and perhaps you might have forgotten to edit the CardboardAppController.m file as documented in the integration guide (note: the fact alone of having the Cardboard files present in the Assets folder may cause black screen on iOS, even if the prefabs are not used in the scene):

 

 

Other general tips:

-        Make sure to use Xcode 7.1 or 7.1.1

-        If using Unity 4.x: make sure to use the latest Unity 4.6.9

-        If using Unity 5.x: make sure to use the latest Unity 5.2.3

 

Also, what happens if you test the Vuforia samples without any modification, are they working correctly ?

 

Log in or register to post comments