Alessandro,
Yes, we dont set the viewport (at least for these tests).
Here is the code that set the camera mode:
if (!QCAR::CameraDevice::getInstance().init(QCAR::CameraDevice::CAMERA_DEFAULT))
AR_THROW_EXCEPTION_TYPED(ProblemType::QCar, "Impossible to initialize camera. You may have to reboot your device.");
if (!QCAR::CameraDevice::getInstance().selectVideoMode(QCAR::CameraDevice::MODE_DEFAULT))
AR_THROW_EXCEPTION_TYPED(ProblemType::QCar, "Impossible to set video mode.");
if (!QCAR::CameraDevice::getInstance().start())
AR_THROW_EXCEPTION_TYPED(ProblemType::QCar, "Impossible to start camera. You may have to reboot your device.");
if (!QCAR::CameraDevice::getInstance().setFocusMode(QCAR::CameraDevice::FOCUS_MODE_CONTINUOUSAUTO))
Logging::warn("Impossible to set autofocus.");
When I set and get the video mode with coherent values, I get the correct ratio, and the behavior of the logs are:
Quality:
[INFO ] VideoBackgroundConfig: size: 768,1365
[INFO ] VideoMode:w=1280 h=720
[INFO ] width= 1536 height= 2048
[INFO ] ViewPort: X,Y: 384,341 Size X,Y:768,1365
Speed:
[INFO ] VideoBackgroundConfig: size: 768,1024
[INFO ] VideoMode:w=640 h=480
[INFO ] width= 1536 height= 2048
[INFO ] ViewPort: X,Y: 384,512 Size X,Y:768,1024
So, the speed mode works, like 2.8.
The quality mode is zoomed by 40% on the ipad3.
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 ?