MS3D & frames
MS3D & frames
Is there any reason why the frames are offset, by around 40 to 42?? Wouldn't it be more appropriate to have the frames the same as the modelling environment??
My guess is because the animation in MS3D is done using keyframes, and there is some kind of frames-per-second property.
Animation is interpolated anyway, so for smooth animations it may be preferable to use a higher precision.
I can't say that that is what is going on - the documentation does not seem to say anything about it.
But using frame numbers in a fixed rate (e.g. 1 ms intervals), even if they aren't all played back, does allow you to replace old animations with more fluent ones without changing any code - as long as the relative length of each separate sequence (e.g. walk, run, die or whatever) stays the same.
I don't know the granularity used by irrlicht, but here are some possibilities:
Animation is interpolated anyway, so for smooth animations it may be preferable to use a higher precision.
I can't say that that is what is going on - the documentation does not seem to say anything about it.
But using frame numbers in a fixed rate (e.g. 1 ms intervals), even if they aren't all played back, does allow you to replace old animations with more fluent ones without changing any code - as long as the relative length of each separate sequence (e.g. walk, run, die or whatever) stays the same.
I don't know the granularity used by irrlicht, but here are some possibilities:
Code: Select all
MS3D framerate Irrlicht framerate factor
24 1000 41.6667
25 1000 42
24 1024 42.6667
25 1024 40.96
Oh yes Niko ! Try to fix that code please ! Or just post the exact value to let the Irrlicht users find the exact frame loop value !
Example: A FPS weapon made with Milkshape 3D, with 180 frame loops need (I don't know the exact value, and this make me crazy ) about 7500 Irrlicht frames ,guest before have write that milkshape use keyframes, that are quite differents... Please post as soon as possible an help on how have the exact value for milk 3D animation! Thanks !
Example: A FPS weapon made with Milkshape 3D, with 180 frame loops need (I don't know the exact value, and this make me crazy ) about 7500 Irrlicht frames ,guest before have write that milkshape use keyframes, that are quite differents... Please post as soon as possible an help on how have the exact value for milk 3D animation! Thanks !
S.T.A.R.S.! (Resident Evil 3)
Well you can't set the frames exactly, as I've already said because when you pass in a floating point number to the set frames function they get rounded to signed integers. Its something I was going to look at, but time has kinda caught up with me, so I've got some more important things to be doing at the moment...
Mhh... So what about Modeling with milkshape 3D, export the model in character FX, end export all in a good 3ds, x, md2, or obj formats?
How do you think about that? What is the best format for characters and what the best for cars? In any case character FX use keyframes(making all useless ) Please reply! Thanks !
How do you think about that? What is the best format for characters and what the best for cars? In any case character FX use keyframes(making all useless ) Please reply! Thanks !
S.T.A.R.S.! (Resident Evil 3)