[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Re: Accessing opengl surface as a numpy array
Thank you Ian !
I just tried it and glReadPixels does the job ! However it clearly
slows down the rendering loop...
Probably because it is a copy operation, is there not a direct access
method to the pixels data ?
Sorry for my ignorance of OpenGL, I guess I would find a good book on
it !
Nicolas
On 12 nov, 16:11, Ian Mallett <geometr...@xxxxxxxxx> wrote:
> Hi,
>
> What you want to do, you can't do the same way. What you'll need to do is
> copy the rendered pixels back from the graphics card with glReadPixels(...),
> or a similar method.
>
> Ian