Hey!
Issue:
We recently upgraded a project to the Unity beta 2017.3.0f2 in hopes to try out the new Vuforia update. After the upgrade we found the camera had FoV issues that create a border around the camera feed changing colour depending on what the camera's background colour is set to.
The issue at first looks as if the background plane doesn't scale to fill the whole screen, but upon further investigation we found the FOV wasn't actually adjusting to the correct value. When you first launch the application it seems fine, but when you press the home button and reenter the application it would adjust the scale again, sometimes it would fill the screen but most of the time it wouldn't.
The issue was seen on an iPhone 8, 7 6, and iPhone X. The size of the border that is visible is different on each device. The iPhone X at times can have a very tiny one you almost don't see.
We noticed in Xcode that at times ARKit would disrupt the camera even though the project wasn't using ARKit at all. The error thrown was:
[Session] Session (0x1414860c0): did fail with error: Error Domain=com.apple.arkit.error Code=102 "Required sensor failed." UserInfo={NSLocalizedRecoverySuggestion=Make sure that the application has the required privacy settings., NSLocalizedDescription=Required sensor failed., NSLocalizedFailureReason=A sensor failed to deliver the required input.}
This doesn't seem to be the exact problem with the fov, as the issue appears even when this error isn't thrown. But it definitely disrupts vuforia at times.
What we have tried:
We have tried re initialising the camera, starting and stopping the camera, and then just simply rescaling the background plane. We found the best solution so far was when resuming the application, wait for the camera to be activated then change the FOV of the camera. Vuforia then, readjusts the camera to the correct FOV that fills the screen correctly. It's a very hacky fix, but it's working for us. There is also the side issue that at times the camera can take 2-3 seconds to start up when resuming the application, but if it has no borders we are fine with it.
Is the issue described a known issue? Doesn't anyone know of an alternative fix?
Edit:
It seems this is actually more related to the camera field of view. A temp fix I have is to set the Camera.main.fieldOfView to 30 and then vuforia seems to notice it's changed and resets it. When it resets the field of view the background plane fits the camera view again.
Edit 2:
I updated the thread title and this post to describe the issue more clearly. Instead of discussing the background plane not scaling correctly.
We're also experiencing this
We're also experiencing this issue and surprisingly, the public release of 2017.3 today does not include a fix for this nor the camera focus.
It would be great if we had the ability to rollback to a previous version of Vuforia.
Tested again today with Unity
Tested again today with Unity 2017.3.0f3 and the issue persists.
Bumping this.
Bumping this.
It would be nice to get a response as to whether this is a bug or something im doing wrong on my side. I have also submitted a bug report to Unity and haven't received confirmation yet.
Hello edwarpin,
Hello edwarpin,
Hi Strasza,
Hi Strasza,
Sorry i was away during the holiday break.
I was able to recreate the issue this morning. I used Unity v2017.3.0f3 and the Vuforia Core Samples pack from the asset store v7.0.43.
I have this occasionally
I have this occasionally happening in builds to an iPhone X
Did you manage to solve this
Did you manage to solve this issue? I’m getting black borders (only on the top and bottom) sometimes in the iOS build for iPhone X.
Manage to find a fix for this
Manage to find a fix for this? On iPhone X I am sometimes getting black borders on the top and bottom. Sometimes the camera renders full screen, but most of the time the borders are there.
Update:
Update:
Unity QA has been able to recreate the bug and has forwarded the issue to their developers.
Did you manage a quick fix
Did you manage a quick fix until it gets addressed in an update? I've tried setting the FOV at the start of the scene so that it autocorrects itself, but I still get borders on the launch of the app every time. However, when I go back into the app (resume), it'll go full screen.
Hey sorry Magglemitch,
Hey sorry Magglemitch,
Thanks for that. Yeah it
Thanks for that. Yeah it didnt seem to fix the iPhone X -hopefully they’lll release a patch/fix soon.
I have the same problem, I
I have the same problem, I write about that in this post: https://developer.vuforia.com/forum/issues-and-bugs/black-borders-arcamera-view
no solution for now..
Anibody with a fix?
Reply from Unity QA:
Reply from Unity QA in regards to this bug:
Did you post that question on
Did you post that question on the Unity forum (https://forum.unity.com)?
If you posted it, could you please tell me the URL?
I want to tell them that "I strongly hope to be backported to Unity 2017.4".
I have the same issue on
I have the same issue on "Unity 2017.4.2f2".
When I try this probrem on "Unity 2018.2.0f2", but it did not occur.
I looked for bug fixes from release notes of "Unity 2018.2.0f2", but I could not find it.
However, I guess that the bug fix was done.
Hello. Any news about this
Hello. Any news about this issue? I also have this problem...
I tried with the code that @edwardpin posted but does not help.
Thanks.
Hello,
Hello,
this is NOT fixed yet. It happens still in 2018.2.14. Now it is a 1-px flickering border around the camera image and it only appears from time to time.
Hello Vuforia,
Hello Vuforia,
Is this resolved yet?
Thanks
Still not fixed. Running on
Still not fixed. Running on iPhone Xs, built with Unity 2019.1.3f2. Sometimes it works, sometimes it doesn't. Attached is a screenshow showing how it looks like when it doesn't. Works good on Android devices.
(The camera plane is obviously meant to fill the entire screen).