Page 1 of 1

MD3 Animation Problem! Pls help! :(

Posted: May 30th, 2013, 4:35 am
by Defunctul
I am having an issue with MD3 models, as they don't play the animation at all.
I am using models made with Blender, and they work perfectly fine in Sandbox if I export them as static models.
However, when I export them with the armature and animation they still appear as static in Sandbox.
The cfg. file is fine, but for example when I add the model in Sandbox (model that has 70 animation frames) I get this error in console saying: '' Invalid frame 1 range 70''.
I am not a real expert in these things so I am not sure where to start looking for the problem, but I really really could use the help because if i get it right then I can start working on my game. If not, my project is all wasted :(
Thank you in advance!

P.S. Does it have to do with tags or splitting the mesh in different parts? Because I haven't done that

Re: MD3 Animation Problem! Pls help! :( *updated*

Posted: June 8th, 2013, 11:27 am
by Defunctul
Ok I managed to get the animation to work eventually. However I still have 2 issues:
- Why doesn't Sandbox play my attack animation? The rest of the animation works perfectly but for some reason attack is not recognized. Is it perhaps disabled from somewhere?
- When I try to play with my character model, I get a weird camera angle from beneath it's feet, and the model is half buried into the ground. Does it have to do with the position it has when i export it from blender? If so, where is the best location?

I know these forums are quite dead, but if someone can answer my questions I would really really appreciate it!

Re: MD3 Animation Problem! Pls help! :(

Posted: June 8th, 2013, 8:54 pm
by Hirato
you should consider using iqm or a newer format.

First things first, the first frame is `frame 0` therefore a range of 70 frames goes from 0 to 69. The modelling application should reflect this too.
There are is no "attack" animations, some of the example modules, like the FPS uses `shoot` and similar and the RPG uses `melee strike`, `range strike` and similar.
When I try to play with my character model, I get a weird camera angle from beneath it's feet, and the model is half buried into the ground. Does it have to do with the position it has when i export it from blender? If so, where is the best location?
Feet on the origin point. I'd say.
You can rotate/translate it easily enough in the model cfg with mdltrans, mdlyaw, mdlpitch, and mdlroll.

Re: MD3 Animation Problem! Pls help! :(

Posted: June 9th, 2013, 7:06 am
by Defunctul
Thank you so much Hirato! I worked a little with those commands and I got the model working just right! :)