By Augment
on Thu, 10/16/2014 - 09:49
The camera image has been dramatically cropped with verison 3.0 of the sdk.
I attached two screenshots of our app, and you can clearly see that the four boxes I placed at each border are almost invisibile in version 3
Please note that to be sure that it was not a screen problem, I divided the render zone by 2:
config.mSize.data[0] /= 2; config.mSize.data[1] /= 2; QCAR::Renderer::getInstance().setVideoBackgroundConfig(config);
This problem only occurs on ios8 devices.
Is this problem know ?
Camera cropped with version 3
I do not have access to Vuforia samples 2.8, but the samples v 3.0 also have this crop.
Do you have any news about this ?
Camera cropped with version 3
W.r.t. 2.x, the SDK 3.0 selects a higher camera resolution (i.e. for better image quality) on high-end devices, as mentioned here:
https://developer.vuforia.com/resources/dev-guide/hd-camera-view
Camera cropped with version 3
Hi Alessandro,
Thanks for your reply.
On my screenshots, you can see the full camera feed as returned by the vuforia library.
Camera cropped with version 3
I dont understand your mention of the screen ratio, since this is handled in the fun
Camera cropped with version 3
Alessandro,
Camera cropped with version 3
Right. So, it must be the iOS 8 issue then
Camera cropped with version 3
Alessandro,
No, the problem also occurs with samples in portrait mode.
Please see the attached screenshots: samples have exaclty the same cropped view, and augment with vuforia 2.8 is good.
Camera cropped with version 3
Augment,
The screenshots you provided only show a difference between Vuforia 2.8 and 3.0
(NOT a difference between iOS 7 and iOS8).
Camera cropped with version 3
Alessandro,
You are right, it's not an ios8 problem
I attached 6 screenshots to this mail, showing that the problem comes from vuforia 3.
The strange thing is, that the same screenshots on a non retina device on ios6 is always "cropped" !
Camera cropped with version 3
You are right, it's not an ios8 problem
Camera cropped with version 3
Alessandro,
Here is a test on a 4th device: an iPad3 (retina) with ios8.
The two screenshot are taken witht the size divided by 2 again, one with MODE_OPTIMIZE_SPEED, the other with MODE_OPTIMIZE_QUALITY.
Camera cropped with version 3
Thanks for this test. The speed vs quality screenshots are helpful.
just to be on the safe side, would you mind sharing your "custom" version of the configureVideoBackground function ? so I can try executing the same code.
Camera cropped with version 3
Hi Alessandro,
Here is the code:
Camera cropped with version 3
Thanks.
The code snippet makes sense,and the dimensions logged indeed reflect the maths used (including the divide by two).
Camera cropped with version 3
Forgot to mention:
could you also share the code in which you select the camera video mode ?
(using the QCAR::CameraDevice::getInstance().selectVideoMode( ) function ?)
i.e. some code like:
Camera cropped with version 3
Alessandro,
Camera cropped with version 3
Augment, thanks for confirming this:
Camera cropped with version 3
Alessandro,
I did test the speed mode for the getVideoMode, I was not aware that there was a selectVideoMode that needed to be changed also, sorry for that. By the way, I dont understand the use of the getVideoMode parameter, if it's forced to be equal to the select.
Camera cropped with version 3
Correct.