How can I access the raw pixel data of an opengl es 2 off screen render buffer?

半世苍凉 提交于 2019-12-07 12:08:35

问题


I can render to the screen but I would like to be able to access the raw pixels that have been rendered by the shader. The only way I know how is to use glReadPixels off of the screen, but I would like to access them before they are draw to screen in order to save frames to disk.

Specifically I want to use shaders to process images that are never displayed: 1)grab image from disk 2)render it 3)output back to disk.


回答1:


Have you tried to render to the offscreen texture as in here?



来源:https://stackoverflow.com/questions/4412587/how-can-i-access-the-raw-pixel-data-of-an-opengl-es-2-off-screen-render-buffer

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