Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

September 19, 2014

bgl and blender (OpenGl wrapper for Blender)

The docs on blender.org are aimed at people who already have familiarity with OpenGL. To see what the bgl module wraps without the limitations of the console buffer size, write dir(bgl) to an internal text file. I use this to see what constants and functions are available.

at the moment, september 2014, using display lists seems to be the faster way to draw demanding geometry.
a = bpy.data.texts.new('openGL')
a.from_string(str("\n".join(dir(bgl))))

No comments:

Post a Comment

Please use Blender.StackExchange.com for python scripting questions unrelated to this post.