openGL in Maya with python

openGL in Maya with python

Another test on opengl in Maya through python.
VBO (lack a datatype) /GLSL seems to be missing from the python side of the Maya API, no documentation found, hence have to stick with display list for now.

Since last experiment with maya node, I have now extracted it and place it in standard script that can be sourced straight from the script editor. The overlay drawing is lost when the activeview refreshes, hence scriptjob and display list is implemented to deal with this.
Image demonstrates 1 million random points with basic implementation (i.e. MGL_POINTS), this takes approx 2 seconds to refresh on camera change.

This enables a processing-like visual representation method in a 3d space that has better control comparing to peasycam in processing.

Leave a Reply

Your email address will not be published. Required fields are marked *