Fork me on GitHub

MD2 Models in WebGL using GLGE

Just a quick one this time. I’ll hopefully get a chance to post up some more demos during the week, but first off, I finally got round to adding MD2 support to GLGE. It turns out this is an excellent way to get animated models onto the web, being small and simple. Hopefully, I’ll be adding MD3 and MD5 as well before too long. As for using MD2 models it’s very simple:

var myModel=new GLGE.MD2;
myModel.setSrc({path to md2});
myModel.setMaterial({GLGE Material});

and to animate:
myModel.setMD2Animation({animation name});

Live demo

Video – for some reason it’s a bit choppy :-( :

Tags: , ,