How can I use a binary image to mask augmented reality with OpenGL and ARcore?

蓝咒 提交于 2020-01-16 08:35:51

问题


I need to render only some part of virtual object like in this image where part of Android Robot is hidden

For doing this I use "Stencil Testing" and i draw with OpenGL a simple rectangle. The problem is that now I need the part "hidden" to be not static but dynamic and I have to choose the part to hidden from a binary image like this one where the black part needs to "hide" (like in the example before) the virtual object and virtual plane. The "mask" will be changed for every frame.

来源:https://stackoverflow.com/questions/59684794/how-can-i-use-a-binary-image-to-mask-augmented-reality-with-opengl-and-arcore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!