Log in or register to post comments

How to Bind Camera Device Modes to Buttons?

September 5, 2013 - 1:26am #1

Hallo, how can I bind the camera device modes being available in the inspector to a button in my app?  I have tried to look into the QCarBehavior Script but I cannot find the line where the dropdown is created thus I’m asking myself what command a button would need to fire in order to set Mode Optimized Quality for example.

How to Bind Camera Device Modes to Buttons?

October 27, 2014 - 6:16pm #3

Hi,

I also want to change between QUALITY and SPEED settings at runtime.

I followed these instructions, and the mode does change, however, after the change the camera projection is incorrect. The video frame looks good, but the 3D objects are stretched.

I guessed the projection matrix had changed, so I attempted to reapply Vuforia's GL projection matrix to the AR camera, but it still looks wrong.

Is there an additional step required here?

I am using the latest SDK and an iPhone 5S.

Also, is it possible to query the current camera device mode at runtime?

Thanks,

Julian.

How to Bind Camera Device Modes to Buttons?

September 5, 2013 - 1:54am #2

You need to initialize the camera and call SelectVideoMode() method with the desired mode paramater,  see:

https://developer.vuforia.com/resources/api/unity/class_camera_device

To do that you will need to:

- stop the Tracker

- stop the camera

- SelectVideoMode ( quality )

- start the camera

- start the tracker

 

 

Log in or register to post comments