MD3 Models

Hello there,

I started developing a little MD3 (Quake 3’s model format) loader. At this stage I can import a single md3 model (without the animations). But as you may know Quake 3’s player models are composed of three parts (head, upper and lower) and I can’t find out how to attach them together. I know I have to use “tags” given by the md3 file but don’t know how. Do I need to use quaternions? I can’t really find any open source md3 loader that I can benefiting from.

Please, excuse my bad English!

Thanks!

Hi

The alpha version of my game contains an MD3 loader supporting animations:
http://svn.code.sf.net/p/tuer/code/alpha/md3/

Feel free to use it (if you agree with the licensing terms). I’ll have to port the MD3 loader of JMonkeyEngine 2 to Ardor3D. Let me know whether it could be interesting for you.

Thanks, I’ll take a look! This makes some sense :slight_smile:

Hi

I ported my MD3 loader to JOGL 2 yesterday, enjoy:
http://svn.code.sf.net/p/tuer/code/alpha/md3/

I’ll implement another MD3 loader in Ardor3D, it will be probably more robust. Best regards.

Hello gouessej ,
is the sample MD3 Model used by the Renderer for download somewhere?

edit, Ok, found it

nice MD3 implementation

Hi

Some silly guys claimed the woman was looking like Lara Croft whereas this model has tiny tits, a different face and is a lot slimmer. The administrator of a website specialized in free softwares complained and then I removed it but you can download it if you go back into the SVN history.

Anyway, you can use the MD3 models of Open Arena if you want.

Thank you for the compliment. rham12 ported it to the main JogAmp competitor but he complained about a problem in the animation whereas I was sure it was working correctly. I don’t use it anymore, I hope it will be useful for some developers.

Hi

I started porting my MD3 loader to Ardor3D:
https://github.com/gouessej/Ardor3D/tree/master/ardor3d-extras/src/main/java/com/ardor3d/extension/model/md3

I should end up with doing that in less than a week. I’ll provide a complete working example as Renanse did for the MD2 format (in ardor3d-examples of course). If you have some experience in MD3 loading, please look at my source code (which is commented, especially the class Md3Importer), another code review can still be useful, I’m a human being, I can make mistakes. Best regards.

P.S: I just have a problem with the management of .skin files but the rest should work.

Hi

I’ve just tested my importer on a very simple object, I’ll add some support of .cfg, .qc and .skin files later, you can see the object on the right (scroll…):