Log in or register to post comments

Autofocus Bug iOS

October 18, 2018 - 4:40pm #1

Vuforia SDK Version: 7.5.26 -

Description with steps to reproduce: Unity 2018.2.13 iOS 12.0.1 iPhone 8+
Wondering why the auto focus is so aggressive and terrible looking. Is this intentional or a bug?
I went to record a promotional video today and had to revert my project to a lesser version just so it would look good.
Many wasted hours for something so silly. In my mind a black border should never appear while auto focusing.
Unity ARKit plugin does a slower auto focus (nicer looking) and does not show this issue, so I'm assuming it is possible to not have this.
Changing focus modes does not help, except when it's turned off of course.

Video example of issue, blow up is of upper right corner.
https://www.dropbox.com/s/vt0v5w74mvy5oeg/Untitled_1.mp4?dl=0
-

Development OS (Mac OS X, Windows, Linux): Mac -

Mobile OS and Version: iOS 12.0.1 -

Mobile Device Manufacturer and Model name: iPhone 8+ -

Do the Vuforia Sample Applications show the same behavior?: New project, blank scene with just an ARCamera shows the issue.

Autofocus Bug iOS

December 15, 2018 - 5:42am #20

Anyway to use this and device tracking in the same app - just different scenes? I’ve tried modifying this at runtime but seems to only pick up the first option.

Autofocus Bug iOS

December 13, 2018 - 5:00am #19

We have found a fix for this issue and hope to include it in the next commercial release of Vuforia in January,

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

December 12, 2018 - 5:18am #18

Just to add to dpizzle's tip, setting "Vuforia Sensor Fusion" is also working and should give better tracking than "Vision Only"... still without ARkit support, though:

Vuforia.VuforiaRuntimeUtilities.SetAllowedFusionProviders(Vuforia.FusionProviderType.VUFORIA_SENSOR_FUSION);

 

The moment I allow PLATFORM_SENSOR_FUSION it starts jumping around like reported. I attached a video of it on my iPhone X

I agree that I see the crazy autofocus in other ARkit apps as well, but Vuforia really amplifies it a lot! So much, that black borders can be seen along the edge of the screen!

 

Is there any estimate for a fix of this? Vuforia can't just be waiting for ARkit to fix their things, as clearly you also have an issue on your end

 

Thanks,

AttachmentSize
Package icon vuforia-arkit-focus.MOV_.zip15.26 MB

Autofocus Bug iOS

December 5, 2018 - 11:52am #17

Wanted to let people know that switching into Vision Only mode before Vuforia intializes solves this issue with the obvious caveat of not being able to use certain features like ground plane.  If your project is just using image targets, highly recommend you do this.

Vuforia.VuforiaRuntimeUtilities.SetAllowedFusionProviders(Vuforia.FusionProviderType.VUFORIA_VISION_ONLY);



 

Autofocus Bug iOS

December 5, 2018 - 8:26am #16

Hello,

Quick update is that we continue to investigate this issue to determine the source. However, considering the timing and state of the investigation, a fix (if Vuforia related) is unlikely to make it into our next commercial release (Jan. 2018).

Apologies for the inconvenience. I'll keep this thread updated with additional developments.

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

November 7, 2018 - 6:29pm #15

I am also getting this problem on ARKit enabled devices. The autofocus looks super ugly because you can see the black borders. This also messes with parenting objects to the camera, as they seem to frag out a little when it does an autofocus, too.

 

Is there any way to disable the autofocus on these devices - and manually implement a focus trigger? Before I was using the code below and it seemed to work fine, but now no longer seems to work with ARkit enabled devices (as I believe ARkit takes over this?)

 

CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_TRIGGERAUTO);

Autofocus Bug iOS

October 30, 2018 - 11:37am #14

Thanks medabit,  really appreciate you taking the time to investigate this.    

Autofocus Bug iOS

October 30, 2018 - 11:33am #13

Hello,

I've reproduced the error, as clarified, and will open a bug with core engineering. I'll keep you posted on when a fix is expected.

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

October 29, 2018 - 3:20pm #12

Hello,

OK, thanks for the clarification. I now understand that your not reporting the aggressive continuous autofocus, but rather a 'border' that renders when the autofocus is triggered.

I will use your reported information and again attempt to replicate.

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

October 29, 2018 - 11:04am #11

Unfortunately you're not seeing what the problem is.  The example video you just gave does not show the issue. I BEG YOU to please slow down and take a brief moment to understand the issue.  

You may be referring to the over reactive auto focusing in that video, this is not what I'm referring to.  

In any version of at least Vuforia 7.0+ built with any version of Unity, a black border appears when autofocusing.  The actual boundaries of the camera view shrinks.  This is certainly an issue with Vuforia + Unity specifically and NOT Apple.  

Here's why:

- Vuforia Chalk does not show the issue on my phone

- The video you posted of Vuforia Chalk does not show the issue

- The native measure app does not show the issue

- Vuforia sample project built with native does not show the issue

- ARKit + Unity apps (non-vuforia) do not show the issue

Here's where the issue shows up:  Any app built with Unity + Vuforia 7.0+

PLEASE NOTE: The issue appears WAY worse depending on device used. 

Finally another video to demonstrate.  This is a blank scene with just an ARCamera with the background color set to red.  Nothing else.

Look at the edges of the video.  See how the screen resizes and the background color comes through?  You should NEVER see the red because the camera frame should never change dimensions.  I challenge you to find any app that's not built with Vuforia + Unity that shows this behavior.

https://www.dropbox.com/s/2m5qb2xju4217i0/Untitled.mp4?dl=0

Autofocus Bug iOS

October 26, 2018 - 8:53am #10

Hello,

Did some socializing with other Vuforia teams and a very similar bug was reported by our Chalk app, which is based upon our native SDK:

https://www.dropbox.com/s/1ja0k7te75t12lh/LBGA9759.MP4?dl=0

Seen on an iPhone 8 running iOS 12.

We reached out to Apple they confirmed that this is a known issue with no known workaround. They never say when things will be fixed so we've stopped asking. Hopefully in 12.1 which is pretty close?

   Follow-up: 702414780

   Hello David,

   Thank you for contacting Apple Developer Technical Support (DTS).

   Our engineers have reviewed your request and have determined that you are experiencing a known issue for which there is no known workaround at this time.

Thanks,

Vuforia Engine Support

 

Autofocus Bug iOS

October 23, 2018 - 10:48am #9

More information regarding this bug:  https://www.dropbox.com/s/sizlt6rusdnnz18/borderissue.mp4?dl=0

Forgot to include, but please note that other ARKIT Unity apps not based on Vuforia do not show the issue.

If possible please let us know if you plan on fixing this so we can plan accordingly.



 

Autofocus Bug iOS

October 22, 2018 - 7:46am #8

By this logic I should see the same exact functionality in iOS Vuforia as Unity Vuforia, right?  It's night and day different.  My gut says this is some kind of rendering issue on the camera feed in Unity and maybe not directly ARKit related.  I do not see the issue at all in the measure app or other Unity apps using arkit.  I will do some side by side video comparisons later today and also check to see how far back the issue goes.  



 

Autofocus Bug iOS

October 22, 2018 - 7:06am #7

Hello,

Here is the internal feedback that I've received:

"You can actually see it on the iOS ARKit measure app which is supplied by Apple in iOS 12.  The behaviour I saw in the measure app was the same as our native apps.

It looks like something may have changed in ARKit in iOS 12 as it isn’t as bad in iOS 11.4.  I saw similar behaviour in native apps. The test in the video seems to be the worst case for the ARKit software. To the best of my knowledge we did not change anything at the native level in the code that calls ARKit to set up focus. It's the same code that went back into 7.0 and 7.1. I haven’t had a chance to try the 12.1 beta and I also couldn’t see anything on the various Apple forums."

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

October 19, 2018 - 5:32pm #6

Hello,

Thanks, I'll socialize this internally. I may be delayed in responding as I'll be on business travel next week.

Apologies for the inconvenience.

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

October 19, 2018 - 4:03pm #5

I have seen it on:

Vuforia 7.5.26 + Unity 2018.2.13

Vuforia 7.2.23 + Unity 2018.2.11 



With an iPhone 8+ running iOS 12.0.1

Autofocus Bug iOS

October 19, 2018 - 3:51pm #4

Hello,

What version of Unity are you using?

Thanks,

Vuforia Engine Support

Autofocus Bug iOS

October 19, 2018 - 12:13pm #3

I do not see this in any other app that has camera functionality on my phone when autofocusing.  The native camera app does not exhibit this and a new unity project with just Unity's ARKit plugin does not exhibit this while autofocusing.  Also note that I do not see this issue with native iOS Vuforia, only Unity iOS Vuforia.  It seems it has something do with your Unity implementation.



 

Autofocus Bug iOS

October 19, 2018 - 11:22am #2

Hello,

Vuforia does not have its own implementation of focus modes. Our APIs call down to platform APIs, similar to other camera controls.

Is this behavior reproducible in a project *without* Vuforia?

Thanks,

Vuforia Engine Support

Log in or register to post comments