"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
Is there a way to setZoom for camera input?
By huichao
on Wed, 06/20/2012 - 17:07
Is there a way to set camera view (input video) zoom level in ImageTargets sample code? should it be set in imageTarget.cpp?
No, the camera zoom is not adjustable. You can play with the size and position of the video background in the configureVideoBackground method in ImageTargets.cpp. You could, for instance, make the video viewport much larger than the screen to "fake" a zoom.
- Kim
How were you able to do this correctly? I also wanted to have this feature, but when a certain maximum zoom threshold is crossed (dependent on device screen size) the gl window seems to shift to the left until the whole screen is black and I have to zoom out. Did you notice that also?
The best you can do is request a higher resolution camera image:
[CODE]
QCAR::CameraDevice::getInstance().selectVideoMode(
QCAR::CameraDevice::MODE_OPTIMIZE_QUALITY);
[/CODE]
Search your native file (e.g.
Re: Is there a way to setZoom for camera input?
Re: Is there a way to setZoom for camera input?
Is there a way to setZoom for camera input?
How were you able to do this correctly? I also wanted to have this feature, but when a certain maximum zoom threshold is crossed (dependent on device screen size) the gl window seems to shift to the left until the whole screen is black and I have to zoom out. Did you notice that also?
Re: Is there a way to setZoom for camera input?