Sign in to follow this  

More .x File Issues

This topic is 4823 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know what the "loop animation" checkbox really does on the MS 3D Studio exporter? When I save an animation without this checked, the last two keyframes in the animation of every bone are identical. With loop flag:
AnimationKey {
4;
32;
0;16;0.907811,-0.000000,-0.419381,0.000000,-0.000000,1.000000,0.000000,0.000000,0.419381,-0.000000,0.907810,0.000000,25.482464,-0.000001,0.000001,1.000000;;,
160;16;0.826401,0.000000,-0.563083,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.563083,-0.000000,0.826401,0.000000,25.482460,-0.000000,-0.000001,1.000000;;,
320;16;0.777286,0.000000,-0.629147,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.629147,-0.000000,0.777286,0.000000,25.482464,-0.000000,0.000001,1.000000;;,
...
4000;16;0.748234,-0.000000,-0.663435,0.000000,0.000000,1.000000,0.000000,0.000000,0.663435,-0.000000,0.748234,0.000000,25.482464,-0.000001,0.000004,1.000000;;,
4160;16;0.854268,0.000000,-0.519833,0.000000,-0.000000,1.000000,0.000000,0.000000,0.519833,-0.000000,0.854268,0.000000,25.482458,-0.000000,-0.000003,1.000000;;,
4320;16;0.900270,-0.000000,-0.435332,0.000000,0.000000,1.000000,0.000000,0.000000,0.435332,0.000000,0.900270,0.000000,25.482464,-0.000000,0.000003,1.000000;;,
4480;16;0.902250,-0.000000,-0.431214,0.000000,-0.000000,1.000000,0.000000,0.000000,0.431214,-0.000000,0.902250,0.000000,25.482460,0.000000,-0.000001,1.000000;;,
4640;16;0.905877,-0.000000,-0.423542,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.423542,-0.000000,0.905877,0.000000,25.482462,-0.000000,-0.000002,1.000000;;,
4800;16;0.907803,0.000000,-0.419398,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.419398,0.000000,0.907803,0.000000,25.482462,0.000000,-0.000002,1.000000;;,
4960;16;0.907811,-0.000000,-0.419381,0.000000,-0.000000,1.000000,0.000000,0.000000,0.419381,-0.000000,0.907810,0.000000,25.482464,-0.000001,0.000001,1.000000;;;
}
{ LShin }



Without loop flag:
AnimationKey {
4;
32;
0;16;0.907811,-0.000000,-0.419381,0.000000,-0.000000,1.000000,0.000000,0.000000,0.419381,-0.000000,0.907810,0.000000,25.482464,-0.000001,0.000001,1.000000;;,
160;16;0.826401,0.000000,-0.563083,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.563083,-0.000000,0.826401,0.000000,25.482460,-0.000000,-0.000001,1.000000;;,
320;16;0.777286,0.000000,-0.629147,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.629147,-0.000000,0.777286,0.000000,25.482464,-0.000000,0.000001,1.000000;;,
....
4000;16;0.748234,-0.000000,-0.663435,0.000000,0.000000,1.000000,0.000000,0.000000,0.663435,-0.000000,0.748234,0.000000,25.482464,-0.000001,0.000004,1.000000;;,
4160;16;0.854268,0.000000,-0.519833,0.000000,-0.000000,1.000000,0.000000,0.000000,0.519833,-0.000000,0.854268,0.000000,25.482458,-0.000000,-0.000003,1.000000;;,
4320;16;0.900270,-0.000000,-0.435332,0.000000,0.000000,1.000000,0.000000,0.000000,0.435332,0.000000,0.900270,0.000000,25.482464,-0.000000,0.000003,1.000000;;,
4480;16;0.902250,-0.000000,-0.431214,0.000000,-0.000000,1.000000,0.000000,0.000000,0.431214,-0.000000,0.902250,0.000000,25.482460,0.000000,-0.000001,1.000000;;,
4640;16;0.905877,-0.000000,-0.423542,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.423542,-0.000000,0.905877,0.000000,25.482462,-0.000000,-0.000002,1.000000;;,
4800;16;0.907803,0.000000,-0.419398,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.419398,0.000000,0.907803,0.000000,25.482462,0.000000,-0.000002,1.000000;;,
4960;16;0.907803,0.000000,-0.419398,0.000000,-0.000000,1.000000,-0.000000,0.000000,0.419398,0.000000,0.907803,0.000000,25.482462,0.000000,-0.000002,1.000000;;;
}
{ LShin }



See the difference? Check out the very last frame. Why is it exactly the same as the second-to-last frame without the loop checkbox? It was hard to notice this, because my keyframes fly by at 33.3 milliseconds per frame, but it's definitely happening. Now I have to go back and re-export all of them with that flag on. Even animations that don't loop. Yay. Much thanks if anyone can shed any light on this. EDIT: Forgot to mention that the last keyframe in the real animation is supposed to be identical to the first frame. It's supposed to loop, so the first and last frames are the same before the export. But the accuracy of the simularities between the first and last frame in the x file are a little too clean. I'm almost sure the exporter must have copied the first frame to the last. What purpose would that serve? And why put two identical frames at the end if it doesn't loop? Do I need to ignore these last frames? Sounds like a plan.

Share this post


Link to post
Share on other sites
It is a FLAG whenever your animation shall loop.
For example an IDLE STANCE shall loop forever until keyboard is pressed. Jump shall not waste forever, so it may not be repeated.

If an animation shall be repeated or not has nothing to do with the animation keys.

Share this post


Link to post
Share on other sites
Did you not notice the two big source boxes up there? Each is the exact same animation. The only difference is that I exported one with the loop checkbox, one without it.

So apparently, the loop flag does have something to do with the animation keys. The very last key of every single bone animated.

Share this post


Link to post
Share on other sites

This topic is 4823 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this