"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

add a switch to turn on or off qcar

I am developing a shooting game by QCAR. I'd like to give user two ways to play the game: AR mode and Gyro mode.

both of them share one opengl context.

Is there any sample code or code snippet to give me some hint?

 

thanks

I have found the reason last night.

in renderFrameQCAR?if u deleted begin() end() and drawVideoBackground()?you should add glViewPort() to setup viewport for opengl.

I wonder why qcar not to setup viewport at the initialization phase.

any way, this solved my problem.

hi wingnet,

Glad your problem is solved.

Vuforia does setup a viewport in configureVideoBackground() as you can see from the parameters setup there within QCARUtils.mm