[Bf-python] Reading Pixel Data From bgl FrameBuffer

Tom Edwards contact at steamreview.org
Thu Oct 23 19:43:28 CEST 2014


The picture is what happens when you ask the GPU to draw random memory. 
Memory like that at the address of Python's None object and beyond. :-)

On 23/10/2014 3:38 PM, Khalifa Lame wrote:
> glReadPixels() returns None. I'm sure it shouldn't be empty, I did 
> some clearing and drawing beforehand.
> I even tried specifying the buffer to draw to using glDrawBuffer() and 
> glReadBuffer. Tried with GL_BACK and GL_AUX_BUFFERS. Both turn up empty.
>
> Is there something i'm missing?
> Another weird thing, the preview window shows some colored dots when 
> in fact, the data fed to it was the empty result from glReadPixels().
>
> I'm new to openGL programming and even newer to bgl.
>
> -- 
> khalibloo®
>
>
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20141023/049807ba/attachment.html>


More information about the Bf-python mailing list