md3 file created in milkshape not loaded !?!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

md3 file created in milkshape not loaded !?!

Post by mcunha98 »

My question is very simple ( i think ).
I make a md3 model from milkshape, but when i try load this mesh using irr it crashes program sending a message:
Irrlicht Engine version 0.14.0
Microsoft Windows 2000 Professional Service Pack 4 (Build 2195)
Using renderer: OpenGL 1.5
GeForce4 MX 440/AGP/SSE: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
Loaded texture: #DefaultFont
Irrlicht.NET running.
Could not load mesh, file format seems to be unsupported: c:\aranha.md3
The error is generated in this line:

Code: Select all

IAnimatedMesh m_mesh = m_device.SceneManager.GetMesh("c:\\aranha.md3");
Conquistador
Posts: 340
Joined: Wed Sep 28, 2005 4:38 pm
Location: Canada, Eh!

Post by Conquistador »

Irrlicht doesn't nativley support MD3 files, if you want to use them, you can search the forum for an extension or something.
Royal Hamilton Light Infantry - http://www.rhli.ca
Paris/Port Dover Pipes'n Drums - http://www.parisdover.ca
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

MD3 models require a different mesh loader than md2 models.

Someone wrote the code to import md3 models in the tools or project announcements forums. Try a search.

Without the proper loader, the engine will not display your model (hense the file format not supported error).
mcunha98
Posts: 16
Joined: Mon Jan 02, 2006 6:58 pm
Location: Curitiba / PR - Brazil
Contact:

Post by mcunha98 »

Sorry boys !
I really confused me about the features of IRR...
But the question is:

Skeletal animation: A skin is manipulated by animated joints. The Irrlicht Engine will do this when loading .ms3d or .x files. It is easily possible to attach objects to parts of the animated model. It is possible e.g. to attach a weapon to the hand of a model, which will be moved as the hand moves, with only one line of code.

So, i can load a MilkShape model (ms3d), is possible, ok ?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I think you need to get the joint's matrix and set the position of the weapon each frame. I dont think you can get a joint as a scene node, but it would be pretty simple to make a dummy node that stays in sync with a particular joint and make your weapon its child.
http://irrlicht.sourceforge.net/docu/cl ... _s3_d.html
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply