Menu:

¯
RSS  RSS 2.0

MD2

Few days ago I ported Philippe Ajoux MD2 parser to Sandy, and Thomas liked it, so it is now in Sandy SVN trunk :) Then, Alternativa3D 5.0 was released with no means to import anything but 3DS, so I ported it to their APIs too. These ports can be found here and here. People who will want to play with this with some free MD2 models should check links in Sandy thread.

So, how does one use it? There will be some detailed tutorials for Sandy soon; for now here is brief summary.

MD2 file simply contains N named animation frames with full set of vertex coordinates for each. MD2 class exposes two properties, frame and frames. First one is current position in animation timeline, and second one is name-to-number map. This allows use any of wide range of external solutions to rapidly program time-based animation, e.g. Tweener:

md2obj.frame = md2obj.frames ["firstAnimationFrame"];
Tweener.addTween (md2obj,
	{ frame: md2obj.frames ["lastAnimationFrame"], time: 2 });