HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Rotation is off center

07-26-2003, 06:31 PM#1
Oinkerwinkle
I exported a model from Milkshape to Warcraft. It has simple animation, consisting of a turret rotating over or base. It's supposed to be a missile turret from Starcraft. In Milkshape, the animation works properly. In Warcraft, the turret rotates off center. The facing of the turning part changes correctly, but it looks like it is pivoting on a point about 50 units it front of the base. At frame 0, it crosses the point it is supposed to be.

I attached a picture of the model ingame and it Milkshape. On the ingame picture, I drew a red line showing the path the center of the turning part follows.

Here is the part of the MDL that seems like it could cause the problem:
Code:
Bone "origin" {
	ObjectId 0,
	GeosetId Multiple,
	GeosetAnimId None,
	Translation 5 {
		Linear,
		41: { -0.000000, 0.000000, 0.000000 },
		500: { -0.000000, 0.000000, 0.000000 },
		1000: { -0.000000, 0.000000, 0.000000 },
		1500: { -0.000000, 0.000000, 0.000000 },
		2000: { -0.000000, 0.000000, 0.000000 },
	}
	Rotation 5 {
		Linear,
		41: { 0.000000, 0.000000, 0.000000, 1.000000 },
		500: { 0.000000, 0.000000, 0.000000, 1.000000 },
		1000: { 0.000000, 0.000000, 0.000000, 1.000000 },
		1500: { 0.000000, 0.000000, 0.000000, 1.000000 },
		2000: { 0.000000, 0.000000, 0.000000, 1.000000 },
	}
}
Bone "turret" {
	ObjectId 1,
	Parent 0,
	GeosetId Multiple,
	GeosetAnimId None,
	Translation 5 {
		Linear,
		41: { 0.000000, 0.000000, 0.000000 },
		500: { 0.000000, -0.000000, -0.000000 },
		1000: { 0.000000, -0.000000, -0.000000 },
		1500: { 0.000000, -0.000000, -0.000000 },
		2000: { 0.000000, -0.000000, -0.000000 },
	}
	Rotation 5 {
		Linear,
		41: { 0.000000, 0.000000, 0.000000, 1.000000 },
		500: { -0.000000, 0.000000, 0.707107, 0.707107 },
		1000: { -0.000000, -0.000000, -1.000000, 0.000000 },
		1500: { -0.000000, -0.000000, -0.707107, 0.707107 },
		2000: { -0.000000, 0.000000, 0.000000, 1.000000 },
	}
}

PivotPoints 2 {
	{ 0.000000, 0.000000, 0.012987 },
	{ 70.000000, 0.000000, 0.012987 },
}
Thanks for any help!
07-26-2003, 06:34 PM#2
Oinkerwinkle
I forgot about the picture. :Heh:
07-26-2003, 06:51 PM#3
BL-Winter
try changing the second pivot point to

{ 0.000000, 0.000000, 70.012987 },
07-26-2003, 07:07 PM#4
Markus3832
That looks like a turret from starcraft
07-27-2003, 12:11 AM#5
Oinkerwinkle
It works now, I just changed it to 0,0,0. Thanks.

It is supposed to look like a turret from Starcraft. I'm glad it could be recognized. :-P
07-29-2003, 11:58 AM#6
Markus3832
Can i ask what you are going to use it for?
07-29-2003, 02:51 PM#7
Oinkerwinkle
I'm trying to make some of the terran as modeling/skinning/exporting practice.

I'm using 64x64 textures on everything to make it somewhat reasonable in filesize. :////
07-29-2003, 05:17 PM#8
Ari
Personally, I'd up the texture size at least a little bit - remember 64x64 is *icon* sized :)
07-29-2003, 06:47 PM#9
Markus3832
I use 128 x 128 the smallest... with 64 you won't have an easy time making things look so very good