[Bf-committers] Replacing BGL with PyOpenGL

Mike Pan mike.c.pan at gmail.com
Mon Apr 7 21:26:22 CEST 2014


As a BGE user, I welcome any upgrade in the graphic pipeline. This sounds
like a good idea to modernize BGE's OpenGL capabilities.

Will this change require significant work to update the existing add ons
that uses the BGL module? Although only Screencast-keys comes to mind.

-m


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[0] supports
> Python 3.3+, and could be used as a replacement for BGL (in other words,
> deprecate BGL and ship Blender with PyOpenGL).
>
> Pros:
>   * Someone else would be maintaining the wrapper
>   * PyOpenGL uses ctypes and the same package can be used for multiple
> platforms
>
> Cons:
>   * 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
> mind)
>
> What are some other people's thoughts on this?
>
> --Mitchell Stokes
>
> [0] http://pyopengl.sourceforge.net/
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list