By ijamardo
on Mon, 06/09/2014 - 13:04
Hello everyone,
I am new to Vuforia and I am integrating it inside our existing engine. I am able to see the background video, but not anything that the engine renders. I think the problem is the opengl state changes that calling renderer::begin makes. I was wondering if renderer::end restores these state changes. I am not drawing my object during begin-end, but using this as marker detection and then rendering my scene. Maybe this is not the way to go. I am lost about what begin-end do even I found this link about begin:
https://developer.vuforia.com/resources/dev-guide/opengl-state-changes-video-background-renderer
Any advice would be really appreciated.
Regards,
Iker
OpenGLES state restoration at end()
It might be worth searching the forums because this may have come up before, and I know other developers have integrated third party engines (worth a web search as well).
From memory there was some discussion here as well:
OpenGLES state restoration at end()
Thank you for the reply. I wrote the question because I could not find a very satisfactory answer.
OpenGLES state restoration at end()
Hi, the rendered::end() method does not restore specific OpenGL settings.
The article :
https://developer.vuforia.com/resources/dev-guide/opengl-state-changes-video-background-renderer
already lists all the state changes that you need to take care of.
OpenGLES state restoration at end()
Just wanted to update this thread. I finally solved the problem. It was related to one GL state I was not restoring after vuforia video was rendered in the background.
enableVertexAttribArray
Thank you very much for all the help that was provided.
OpenGLES state restoration at end()
Great, thanks for the update!