Problems importing Quake Model

Hi,



i tried to load a unzipped pk3 File which contains 3 md3 files, tga files etc.

the md3 files are the head the upper and the lower, when i importing each of them via the MD3toJme Converter i have three

Node Objects. Now to my problem, when i try to play the animations via the keyframecontroller only the upper.md3 do the animation the other two nodes do nothing.



Heres my code:

private void initModel() {

head = ModelLoader.getMD3Object(“head”,

“de/ms/xcubus/client/resources/models/tux/head.md3”,

“de/ms/xcubus/client/resources/models/tux/skin.tga”);

head.setModelBound(new BoundingBox());

head.updateModelBound();

attachChild(head);



upper = ModelLoader.getMD3Object(“upper”,

“de/ms/xcubus/client/resources/models/tux/upper.md3”,

“de/ms/xcubus/client/resources/models/tux/skin.tga”);

upper.setModelBound(new BoundingBox());

upper.updateModelBound();

attachChild(upper);



lower = ModelLoader.getMD3Object(“lower”,

“de/ms/xcubus/client/resources/models/tux/lower.md3”,

“de/ms/xcubus/client/resources/models/tux/skin.tga”);

lower.setModelBound(new BoundingBox());

lower.updateModelBound();

attachChild(lower);

}



private void initKeyFrameController() {

kc_head = (KeyframeController) getChild(0).getController(0);

kc_head.setRepeatType(Controller.RT_WRAP);

kc_head.setBlendTime(0.6f);

kc_head.setSpeed(0.05f);



kc_upper = (KeyframeController) getChild(1).getController(0);

kc_upper.setRepeatType(Controller.RT_WRAP);

kc_upper.setBlendTime(0.6f);

kc_upper.setSpeed(0.05f);



kc_lower = (KeyframeController) getChild(2).getController(0);

kc_lower.setRepeatType(Controller.RT_WRAP);

kc_lower.setBlendTime(0.6f);

kc_lower.setSpeed(0.05f);

}



public void update(float time) {

kc_head.update(time);

kc_upper.update(time);

kc_lower.update(time);

}



Can anyone help me at this problem ?

I found a note at a description of quake model.



“Head models do not have animations, they are joined with the upper body mesh and follow the tag_head point in that mesh. If you want to animate the head, you can have the tag_head way out of bounds in upper.md3 and do all the head animations in the torso (upper) meshes.”



How can i realize this with jmonkey ?

The “MD3toJme Converter”? You mean this?

https://wiki.jmonkeyengine.org/legacy/doku.php/exporting_animated_.md3_models_from_blender

or this?

http://redmine.ece.uprm.edu/repositories/entry/jmonkeyengine/src/com/jmex/model/converters/Md3ToJme.java



Either way, these are old and user contributed. Furthermore they are for jME2, which means it’s mostly up to the community to cover these. You are using jME2, right? Because jME3 doesn’t have any MD3 support to speak of, and probably never will as it’s not a very widespread format any longer.

Ok :o) thx, i think i will better update to JME3!

But one more question!

Which modeltype would you recommend me? I want to use animated Chars.

OgreXML