"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

cameraDevice.getVideoMode returning 0,0

Hi.

I ahve been using Vuforia for a month or so and have found it great on a few phones, but recently started testing on two three tablets.

On a Nexus 7 it is fine, but on a Galaxy Note and Sony Tablet S the video size returned from

cameraDevice.getVideoMode(QCAR::CameraDevice::MODE_DEFAULT);

 is 0,0 within configureVideoBackground, therefore several things downstream fail.

I've tried using the following code

QCAR::State state = QCAR::Renderer::getInstance().begin();
QCAR::Frame frame = state.getFrame();
const QCAR::Image image = frame.getImage( 0 );
int videoWidth = image->getWidth(); 
int videoHeight = image->getHeight();

as suggested in another post but I'm getting a compilation error.

Thanks.

 

AlessandroB

Thu, 11/07/2013 - 16:20

The samples invoke the configureVideoBackground() function in the startCamera (which is called when the App is resumed) and in the updateRendering() which is called when the screen changes.

Do the original samples show the correct behaviour and values (without code modifications) ?

AlessandroB

Sun, 11/10/2013 - 19:22

Thanks for doing this test; 

so when you run the unmodified Image Targets sample you get (0,0).. what do you observe on screen ? do you see a black screen or similar issue ?

 

AugmentedTech

Mon, 11/11/2013 - 11:02

Hi

The Sony is 'Sony Talbet S', build TISU0033410, Android 4.0.3, OpenGL ES 2.0 14.01002

Samsung Galaxy Note 10.1 (GT-N8000)-  Android 4.1.2

Nexus 7 – Android 4.3

AugmentedTech

Tue, 11/12/2013 - 17:22

Okay, have just re-imported the ImageTargets sample to Eclipse, run it and am now getting a video size!

It appears that something in the programme flow is messing with the initilisation then - I apologise for the miss-direction.