I’m begging for your help this time as I’ve been dealing with this problem for a couple of days and it’s driving me crazy.
I have a new iPad Pro with iOS 11.2 installed and an old iPad Mini 2 with iOS 10.2 installed.
I’m using the Core Samples Unity project to make sure it’s not me doing something silly.
I have three problems to report, which I believe are related:
1. The first problems is that the position of the augmentations on iOS11 and iPad Pro are not at all accurate and very unreliable. To illustrate what I mean I’ve placed a 3D cube aligned on top of the “N” letter on the Mars Oxygen Image Target (please see image “InUnity.png” to see how this looks like inside the project).
In image “OniOS11_incorrect1.jpg” you can see that when running the app on iPad Pro + iOS 11.2, the cube is not positioned correctly on the image target. In this case I was displaying the image target on my computer.
In image “OniOS11_incorrect2.jpg” you can see again that the position of the cube is not accurate, and it fact it’s also totally different than in the previous example. This time I was displaying the image target on my iPad Mini.
In image “OniOS11_correct.jpg” you can see that this time the cube is positioned correctly BUT there are two black strips on the sides of the background image. I’ve tested this a million times and every single time that the cube was set correctly, those black strips were present, so I’m pretty sure these two problems are somehow related.
Finally, in image “OniOS10_correct.png” you can see that everything looks correct. The position of the cube is perfect and there are no black strips.
Other important info: this only happens with the back camera, not the front camera. The problem was also present for iOS 11.0.
2. The second problem is that setting the camera focus on iOS11 + iPad Pro is totally ignored the first time it’s set (during the OnVuforiaStart function in the CameraSettings.cs script). This means that when the app starts the first time the background image is totally out of focus. Only by tapping the screen, which triggers again the call to SetFocusMode, the focus is set properly.
3. The third problem is regarding the appearance of the black strips that I briefly mentioned above. These strips never appear when the app first launches. They appear when the application is paused and resumed again.
Sorry for the long write-up and please let me know if you need any other information to be able to reproduce the problem. The app that I’m building needs the augmentations to be placed accurately so solving this is really super important.
A million thanks in advance for your help!
P.S. Never had any of these problems on Android.