[Bf-committers] Replacing BGL with PyOpenGL
dahliatrimble at gmail.com
Mon Apr 7 21:46:40 CEST 2014
I remember I wanted to use PyOpenGL a while back for a blender addin script
idea I was toying with. At the time the support for python 3+ was quire
lacking and I was unable to get it to work. I have used PyOpenGL for an
earlier project based on python 2.7 and it worked quite well, however there
seemed to be a lot of overhead and it would bog down quite a bit after just
a few hundred GL calls per frame. I hope it's improved since then.
On Mon, Apr 7, 2014 at 1:59 AM, Mitchell Stokes <mogurijin at gmail.com> wrote:
> BGL is a Python wrapper for OpenGL that is maintained by Blender.
> Unfortunately, it is stuck on approximately OpenGL 1.1 level features with
> some shader calls also exposed. It could be updated to support newer OpenGL
> features (at least having vertex arrays would be nice), but there really is
> not much need to maintain our own OpenGL wrapper. PyOpenGL supports
> Python 3.3+, and could be used as a replacement for BGL (in other words,
> deprecate BGL and ship Blender with PyOpenGL).
> * Someone else would be maintaining the wrapper
> * PyOpenGL uses ctypes and the same package can be used for multiple
> * Yet another Python package for us to ship with Blender
> * Adds to Blender's size
> * Some APIs may need to be updated (bge.texture and Image.gl_load come to
> What are some other people's thoughts on this?
> --Mitchell Stokes
>  http://pyopengl.sourceforge.net/
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers