md2/md3 animation doesnt work :(
#1
I made a mapmodel with animation
In cfg file i wrote next:

for the .md2:
mdlscale 160
md2anim mapmodel 1 60 15

for the .md3:
md3load tris.md3
md3skin Group skin.jpg
md3anim mapmodel 1 60 15

So, i tried both model formats, but it still doesnt work.
Ah, a part of game log:
...
loaded textures (182 milliseconds)
invalid frame 1, range 60 in model mapmodels/fantomas.ua/wf
invalid frame 1, range 60 in model mapmodels/fantomas.ua/wfmd3
loaded mapmodels (402 milliseconds)
loaded mapsounds (0 milliseconds)
...
What wrong i did?

PS In milkshape3d and fragmotion editors, that i used, animation works fine
Thanks given by:
#2
Oh, quite easy. Just change the "60" to "59" and it should work fine :)
Thanks given by:
#3
(13 Oct 11, 09:34PM)Dementium4ever Wrote: Oh, quite easy. Just change the "60" to "59" and it should work fine :)

Dementium4ever, man, thats workin'! Thanks, dude ::beer::
But, why should i use 59, if in the modeleditor my animation duration is 1 to 60?

And there is new problem:
In the modeleditor my model does one spin by 360°. But in the game model rotates about 60° CW, then about 90-120° CCW :(
Thanks given by:
#4
Computers start counting at zero is my guess.
Thanks given by:
#5
(13 Oct 11, 09:45PM)FANTOMAS.UA Wrote: And there is new problem:
UPD Im on the way to solve it
Thanks given by:
#6
Glad to hear that it works :)
Well it's like this: 1 is the frame, where the animation starts. And this 1 Frame is added to the animation, so it's like: 1+60=61. You typed in 1 60 15, so the programm thinks, it has 61 Frames, but it can only find 60, so it gives you an error.
When you type in 1 59 15, than it thinks you have 60 Frames, and you also have 60 Frames so it's working :)
Thanks given by:
#7
Yessss!!! I did it!!!
Soon I will present all of you my new mapmodel ;)
Thanks given by:
#8
Yeah!
Love to see new modelers here :)
Thanks given by: