Log in or register to post comments

Vuforia Camera in Custom Render Engine

May 1, 2016 - 2:51am #1

Hello,

I'm trying to display vuforia video background using a custom render engine . The problem that I get is that the frames are not rendered in the center of the screen and the they don't cover the full size of the screen (see attached screenshot).

I have noticed that setVideoBackgroundConfig() does not influence at all the way how the frames are displayed. I've set mPosition and mSize manually to more or less random values but nothing happens. I'm afraid that the background config is not correctly setup or it's not even considered...

Then I also believe that it might be some OpenGL issues inside the render engine. Here's the code that I use:

    QCAR::Renderer::getInstance().setVideoBackgroundTextureID(stack->gl_id);
    QCAR::State state = QCAR::Renderer::getInstance().begin();
    QCAR::Renderer::getInstance().bindVideoBackground(stack->gl_id);
    glBindTexture( GL_TEXTURE_2D, stack->gl_id);
where stack->gl_id is the texture ID allocated by the custom engine.
 
Any help is much appreciated!
AttachmentSize
Image icon vuf_camera.png1.39 MB
Log in or register to post comments