Code to load MD2 files below. Anyone out there want to help create simple MD2 models that work well with Papervision - or - does anyone know of a good resource to purchase already animated models? I just wanted to get a few for some blog entry's. Full credit would be given or course. I found several models this morning but after a few hours only 1 of them was of value. It happened to be the one tied to Clint Hannaford's example. :/
Once you have a good model here is the super simple code to load it:
Actionscript:
-
var wireframeMat:WireframeMaterial = new WireframeMaterial(0x000000);
-
-
var md2:MD2 = new MD2(true); //if you get errors try using false - it may be a single frame file (no animation)
-
md2.load("assets/test_4.md2",wireframeMat);
-
//Add to your scene for rendering
Yeah I know.. That's it. The hard part is finding a model that doesn't suck.

Hi there, I just saw the link (trackback) on my blog.
You can find a heap of MD2 files to play with at any old Quake 2 model resource.
One of note is the PolyCount website:
http://polycount.com/models/quake2/
We ended up launching a project using the MD2 file format as a basis for character animation in Papervision (1.5) here:
http://www.saveyoursensible.com
I’ll be posting more about it soon.
Best of luck
Awesome. Thanks Clint. I will test those out this week.
Charlie
The saveyoursensible site is amazing! Love it.
You know how i can use the animations in the md2 model?
Thanks