Hi Everyone,
I would like to be able to create a “custom object” using Python, which is drawn in a 3D view (alongside normal meshes, empties, curves, etc.).
I’m aware of the BGL module, but this seems to draw only in the script window. What I’m after is something that can draw in the 3D view.
This is for an application in biomechanics modeling. I have a skeleton model to which I would like to add muscle paths as custom objects. These muscle paths are constructed from several basic sub-objects:
- Origins and insertions of muscles (basically points).
- “Spherical pulleys” over which the muscles pass at the joints.
I can already create representations of these objects as meshes using a “wizard”-style script, that can update everything each frame. This is useful for generating illustrations, but is slow and cumbersome for realtime viewing. Is there any way for me to draw directly in the 3D view itself using OpenGL?
Thanks,
Jonathan Merritt.