I am interested in building a custom scene exporter and for that it would be nice to be able to access Blender's openGL state directly.

I'd like to, for instance, be able to access allocated VAOs, VBOs, shaders, etc from bpy or bgl itself.

I am looking for something akin to gpu.export_shader() I guess but for other opengl objects. Is it even possible?

  • $\begingroup$ In 2.7x bgl is the best you're going to get. I don't believe what you're describing is in the Python api. Your best bet for anything that's not documented through is going through the Blender Python integration source $\endgroup$ – Coburn May 16 '19 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.