By wingnet
on Sun, 11/25/2012 - 09:24
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
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.
add a switch to turn on or off qcar
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
N