Log in or register to post comments

ios front camera landscape mode black bars

July 10, 2017 - 12:40am #1

Hi all,

We're developing an AR application in Unity (5.6.1f1) and the latest Vuforia. On iOS (some devices) we are experiencing some odd issues with the front camera.

I have searched the forums for my issue - but it doesn't turn up anything I could use.

The application is landscape. Orientation can be either left or right. When activating the front camera we sometimes have two black bars (about 1 cm in width, full vertical height)  - positioned left and right of the camera feed. The camera feed itself  is stretched smaller in width. It almost looks like if the camers is thinking it should be in portrait and is scaling the feed accordingly. Apologies that I don't have a screenshot at hand.

I have confirmed reports of this happening on multiple iPhone SE models. There are unconfirmed reports of this happening on iPhone 6s.

Has anyone encountered this - or can point me in the direction of a possible explanation and/or fix?

Thanks in advance!

Pieter

 

ios front camera landscape mode black bars

July 11, 2017 - 2:07pm #4

I deployed the sample app to an iPhone SE with ‘Auto Rotation’ set as the default orientation and then set “Camera Direction” to “CAMERA_FRONT” in the Vuforia Configuration. I didn’t see any black bars in landscape mode with these settings while using the front camera. Could you provide any additional information about your app settings (what is your “Camera Direction” value set to for example)? Alternatively, a screen shot, video, and/or sample app that reproduces the issue?

Thanks,

-Vuforia Support


ios front camera landscape mode black bars

July 11, 2017 - 3:24am #3

Hi,

Thanks for your reply!

The default orientation is 'Auto Rotation'.

 

Cheers,

Pieter

 

ios front camera landscape mode black bars

July 10, 2017 - 2:03pm #2

Hello PieterAlbers,

What is your default orientation for iOS set to in Unity? You can check this by going to Edit -> Project Settings -> Player and then once in there select the iOS tab.

Thanks,

-Vuforia Support

Log in or register to post comments