如何访问屏幕外渲染缓冲区的OpenGL ES 2的原始像素数据? [英] How can I access the raw pixel data of an opengl es 2 off screen render buffer?

查看:79
本文介绍了如何访问屏幕外渲染缓冲区的OpenGL ES 2的原始像素数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以渲染到屏幕,但是我希望能够访问着色器渲染的原始像素.我知道的唯一方法是在屏幕外使用glReadPixels,但是我想在将它们绘制到屏幕之前对其进行访问,以便将帧保存到磁盘.

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.

特别是我想使用着色器来处理从未显示过的图像:1)从磁盘抓取图像2)将其渲染3)输出回磁盘.

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秒登录
发送“验证码”获取 | 15天全站免登陆