HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help: How to change the base SPEED of an animation in the MDL?

10-03-2004, 10:32 PM#1
GreyArchon
Trying to work this out in notepad. How do I change the speed of which an animation is performed in the MDL? Anyone know?
10-03-2004, 10:47 PM#2
Oinkerwinkle
You have to first change the sequence sections to have it take a shorter amount of time and then change the keys themselves (listed in bones & helpers) to match.

For example: making the Acolyte's stand be shorter. First for the sequences.
Change
Code:
	Anim "Stand" {
		Interval { 5800, 7267 },
		MinimumExtent { -48.1756, -34.146, 6.98634 },
		MaximumExtent { 23.9656, 35.0553, 107.289 },
		BoundsRadius 58.5919,
	}
to
Code:
	Anim "Stand" {
		Interval { 5800, [u]6300[/u] },
		MinimumExtent { -48.1756, -34.146, 6.98634 },
		MaximumExtent { 23.9656, 35.0553, 107.289 },
		BoundsRadius 58.5919,
	}
or whatever would work for you. Those two values are the start and end frames. There are 1000 frames per second.

Then for the hard part: bones. You'll be dealing with big blocks of animation keys like this:
Code:
	Rotation 25 {
		Hermite,
	[b]	5800: { 0.0383452, -0.00986275, -0.117124, 0.992328 },
			InTan { 0.0493168, -0.0135293, -0.15289, 0.986919 },
			OutTan { 0.044469, -0.0110624, -0.134827, 0.989809 },
		6167: { 0.0295934, 0.00411446, -0.0591037, 0.997805 },
			InTan { 0.0246925, -0.000683672, -0.0517686, 0.998354 },
			OutTan { 0.0238931, -0.00133523, -0.0503119, 0.998447 },
		6433: { 0.0612512, 0.0511217, -0.0746992, 0.994009 },
			InTan { 0.0651589, 0.0594804, -0.0717308, 0.993515 },
			OutTan { 0.0645653, 0.0576532, -0.0732502, 0.99355 },
		6933: { 0.0770491, 0.049849, -0.129984, 0.98726 },
			InTan { 0.083421, 0.0575748, -0.136224, 0.985479 },
			OutTan { 0.0847713, 0.0590275, -0.137907, 0.985044 },
		7267: { 0.0383452, -0.00986273, -0.117124, 0.992328 },
			InTan { 0.0297444, -0.0230829, -0.114192, 0.992745 },
			OutTan { 0.0324396, -0.0189421, -0.115114, 0.992642 },[/b]
		8433: { 0.0383452, -0.00986277, -0.117124, 0.992328 },
			InTan { 0.0383452, -0.00986277, -0.117124, 0.992328 },
			OutTan { 0.0383452, -0.00986277, -0.117124, 0.992328 },
		13333: { 0.0383452, -0.00986277, -0.117124, 0.992328 },
			InTan { 0.044276, -0.00317658, -0.125965, 0.991041 },
			OutTan { 0.0475397, 0.000506457, -0.130827, 0.990265 },
What you have to do is to redistribute the keys from between 5800 and 7267 (the original time) to 5800 and 6300. That means all the bolded ones. Fortunately, I've made a program that does it for you. Just paste the animation keys in, set the labeled fields, and click 'Redistribute'.

Repeat for each bone.
10-04-2004, 08:30 AM#3
GreyArchon
Quote:
Originally Posted by Oinkerwinkle
What you have to do is to redistribute the keys from between 5800 and 7267 (the original time) to 5800 and 6300. That means all the bolded ones. Fortunately, I've made a program that does it for you. Just paste the animation keys in, set the labeled fields, and click 'Redistribute'.

Repeat for each bone.

You're my hero. Please have my babies.
10-07-2004, 01:59 AM#4
urkdrengi
Awwh sweetness! I've been wanting to do this too. Never got past the ‘hard part' though, and here we have a program! May the world be filled with little Oinkerwinkle piglets.