Hello
I am trying to mege a 3D rendering library with QCAR.
I marged and rendered a 3D model on my Android phone. But I have an error.
I am setting OSG(3D render lib) settings once in "updateRendering" function of "frameMarkers" example. After this if I render model then it appears only once on the screen and disappears.
If I comment "QCAR::Renderer::getInstance().drawVideoBackground();" statement then the model remains on screen forever but no background.
How can I get my model on screen forever on screen with background.
Thanks in Advance
WizDP
Hi,
I came to know that "QCAR::Renderer::getInstance().drawVideoBackground()" resets the OpenGLES context. Internally OSG Library uses OpenGLES, so that's why I am not getting model on screen when i remove comment "QCAR::Renderer::getInstance().drawVideoBackground()".
Is there any way to solve this problem?
Another Idea is setting background as textures. By appling image to texture and can show the texture as a background.
How can I get camera image from QCAR. OSG will take image data as unsigned char pointer.
Can you please help me the currect way?