[Bf-python] Reading Pixel Data From bgl FrameBuffer

Khalifa Lame khalibloo at gmail.com
Thu Oct 23 16:38:02 CEST 2014


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®
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20141023/c1b9079c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bgl_prev.PNG
Type: image/png
Size: 7840 bytes
Desc: not available
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20141023/c1b9079c/attachment.png>


More information about the Bf-python mailing list