Page 1 of 1

Reading texture data from GLES

Posted: Tue Feb 25, 2014 4:07 am
by mannam
I know GLES don't have glGetTexImage.

Someone suggests binding the texture to FBO and use glReadPixels to get the data.

How to do this in Ogre? Thanks.

Re: Reading texture data from GLES

Posted: Tue Feb 25, 2014 5:44 am
by masterfalcon
If you are using GL ES 2 and Ogre 1.9 you can use GLES2TextureBuffer::download.

Re: Reading texture data from GLES

Posted: Tue Feb 25, 2014 6:54 am
by mannam
Thanks. But how about Ogre 1.8?

Re: Reading texture data from GLES

Posted: Tue Feb 25, 2014 6:59 am
by masterfalcon
Sorry, it's a feature that was added for 1.9. There are no plans to back port it to 1.8. However the code is pretty well contained within that function so you could just copy/paste it from 1.9 if you wish.

Re: Reading texture data from GLES

Posted: Tue Feb 25, 2014 9:49 am
by mannam
Okay, thank you!