ajhager.com
Feb 16, 2008

Pymd2 1.0 /python

I would like to officially announce the release of my quake2 model loader and animator for python, Pymd2. I still want to do some cleaning up, optimizations, and calculating normals. I probably should not release it as 1.0 because it depends on pyglet svn, so hold off until pyglet-1.1 is released.

One thing that I really love about pyglet, and that helped speed up pymd2 by an order of about 20, is pyglet.graphics.draw(). It is a simplified interface to vertex arrays. A textured model looks like:

graphics.draw(num_of_vertices, GL_TRIANGLES, ('t2f', texture_vertices_array), ('v3f', array_of_vertices))

Pyget is really starting to shape up. I have started moving all of my projects over to it. Right now I am trying to see if it is right for Galaxy Mage Redux. I will be posting about that soon.


© Copyright 2007-2008 A. Joseph Hager