Log in or register to post comments

add a switch to turn on or off qcar

November 25, 2012 - 1:24am #1

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

add a switch to turn on or off qcar

November 26, 2012 - 1:33am #3

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

 

add a switch to turn on or off qcar

November 25, 2012 - 10:01pm #2

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.

 

Log in or register to post comments