"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Vuforia-Camera center shift on some devices

Vuforia SDK Version: 8.0.10 - Description with steps to reproduce: I've probably found a Vuforia bug I'd like to report: Galaxy S9 Android 9 SDK 8.0.10 Unity 2018.2.13f1 On my Android build on a Galaxy S9 G960F, the Vuforia Camera has a displacement of the image center. This can be easily reproduced as follows: * Create a new scene * Add the ARCamera from Vuforia to the scene * Add Sphere as child node on the camera * Move the sphere only on the Z axis to 5 (or similar) * Canvas in the scene * Create a picture on the canvas (magenta quadratic) * Picture on 20x20 pixels (or similar) * Anchor image directly in the center on the canvas The expectation of this scene is that the UI image, which is shown in the screen center is located directly in the center of the rendered sphere in 3D space. That's not the case. Here is an offset of the 3d objects recognizable. Only the UI is in the center of the screen. The 3D Objects are shifted away from screen center. Solution (hacky): If you switch the camera component which is asigned on ARCamera to orthographic at runtime and then back shortly afterwards, the scene will match the expected result. I can only assume that this is a bug. Would be glad about help or an answer. Thank you. - Development OS (Mac OS X, Windows, Linux): Windows 10 - Mobile OS and Version: Android 9 - Mobile Device Manufacturer and Model name: Samsung Galaxy S9 - Do the Vuforia Sample Applications show the same behavior?:

Hello,

[quote=mjantowski]

On my Android build on a Galaxy S9 G960F, the Vuforia Camera has a displacement of the image center. This can be easily reproduced as follows:

* Create a new scene

* Add the ARCamera from Vuforia to the scene

mjantowski

Thu, 03/21/2019 - 18:51

Yes I know that. this is just the minimal example to reproduce the bug or misbehaviuor. there must be no tracking or other vuforia feature active. only the first initializing and the camera is started.

mjantowski

Thu, 03/21/2019 - 21:02

Maybe i found the reason for the shift: the projection matrix of the vuforia arcamera is maybe wrong, because the aspect ratio which is used in the matrix is 2.059594. but the aspect ratio with screen.width / screen.height results on the Samsung S9 to 2.055556.

Hello,

The camera resolution that Vuforia uses is unlikely to be wrong as the device advertises supported resolutions, and Vuforia picks one of those.

mjantowski

Wed, 03/27/2019 - 08:22

Many thanks for your response.


We have been working with vuforia for a few years and yes, we need a certain accuracy of tracking. That has always worked very well so far. The accuracy is still present on many devices.

Hello,

If you can provide a repo project with instructions on how to replicate the issue, then I can escalate to the engineering team for further review.

Thanks,

Vuforia Engine Support