IOS Ogre Render Vuforia QCAR VideoBackground

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
Posts: 2
Joined: Thu Jun 11, 2015 3:59 am

IOS Ogre Render Vuforia QCAR VideoBackground

Post by android88 » Wed Jun 17, 2015 6:28 am

:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: Hello, I tried to Ogre engine and Qualcomm's Vuforia QCAR SDK in combination ios platform. But encountered some problems, I hope the high-pass rendering video data to the bottom, Ogre scene content rendering is superimposed onto the video data. I tried many methods, but can not do it. Either the current video is displayed, but the content has not show ogre, ogre or displayed, but the video can not be displayed. The following code can be video displayed, it is not possible ogre appear superimposed on the video. Here, I sincerely seek your great God, wanted to help me solve this problem, thanks again! This problem is especially urgent, but also look to know friends help out. :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:

Code: Select all

void AROgreFramework::renderFrame(Ogre::Real time)
    QCAR::State state = QCAR::Renderer::getInstance().begin();


    const QCAR::CameraCalibration& cameraCalibration = QCAR::CameraDevice::getInstance().getCameraCalibration();


    if (QCAR::Renderer::getInstance().getVideoBackgroundConfig().mReflection == QCAR::VIDEO_BACKGROUND_REFLECTION_ON) {
        glFrontFace(GL_CW); //Front camera
    else {
        glFrontFace(GL_CCW); //Back camera

    m_pViewport->setClearEveryFrame(true, Ogre::FBT_DEPTH | Ogre::FBT_STENCIL);



Please help me, thank you friends :!: :!: :!: :!: :!: :!: :!: :!:
0 x

User avatar
OGRE Team Member
OGRE Team Member
Posts: 4138
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 268

Re: IOS Ogre Render Vuforia QCAR VideoBackground

Post by dark_sylinc » Wed Jun 24, 2015 6:42 pm

I integrated QCAR with Ogre for Android a few years ago, and sadly I can't share the code.

However I do remember that Vuforia messed up a lot more OpenGL state than what the documentation said; including bound textures.
The amount of state you're resetting is not enough. Furthermore you need to restore the state to what Ogre left it in the previous frame.
Also advisable, until you get it running, first disable the GLES state tracker from CMake and rebuild.
0 x

User avatar
Posts: 46
Joined: Thu Jul 24, 2008 5:48 pm
Location: Marseille

Re: IOS Ogre Render Vuforia QCAR VideoBackground

Post by cose » Thu Jul 23, 2015 11:01 am

if this can help ( android code for NxGraphics Engine ) just to look initialization and texture format, etc ...
look for: Renderer.getInstance().bindVideoBackground

and ... o/main.cpp
0 x

Post Reply