Game Development Community

Scaling player models during export Milkshape to dts

by Richard Marrevee · in Artist Corner · 04/19/2010 (2:41 am) · 3 replies

I have bought the Advanced Character Kits (Male and Female). Real nice, but when I am using the provided .dts files, the models are to big.

Now when I open the model in Milkshape to re-export them I noticed that in the Exporter the scale is set to 1.4. I have set it to 1 (seems logic to me) and re-exported it. Al is well, except when I use the model in T3D beta 2 the model is not standing on the ground, but his head is on the same level as the shape which was exported with scale 1.4

Because I am new to Milkshape I hope someone has a solution for this problem.

One solution is off course scale the other models to 1.4 but if I have the choice to scale a few dozen models up or just 1 or 2 player models down.....

Thanks anyway.

About the author

Started programming in 1984 on an Oric, when time progressed switched to MSX, Amiga and finally the Windows PC with T3D. Now developing an epic fantasy game: The Master's Eye. Creator of the DoorClass pack and VolumetricFog pack @ richardsgamestudio.com


#1
04/19/2010 (12:15 pm)
Is there an issue with just scaling the player in the editor? I mean, in T3D, simply change the scale on the player datablock to whatever size you like.

I think someone mentioned that if you have a lot of objects that aren't 1 scale it can slow things down, but for a single player, it shouldn't be much of a hit.
#2
04/19/2010 (12:55 pm)
It is not an issue in the editor. The problem I have is that the player-models I use have different sizes (heights or length if you like). To bring everything in the right proportions I have a choice of rescaling all my other models to the size of the player model, or I can scale the player and some AI-players down. Right now I am doing this on the fly when the player or the bot is added.

But this is solving the cause and not the root.

The player and AI models I have are created in Milkshape 3d (they are part of the Male Advanced Character Kit and the Female). When I export this models the exporter is set to export the model with a scale of 1.4. Here is the problem, but when I export the model with a setting of 1.0 for the scale, the models are hovering above the ground, at such a level that the top of the scale 1 model is more or less at the same height as the 1.4 scale model. I think this is caused by the skeleton, but since I am new to Milkshape I'm not sure about this.
#3
04/19/2010 (2:20 pm)
Well, I'm not a milkshape user, but it sounds like it has to do with center or "pivot" points of the meshes. If the pivot point is at the head, then everything scales up or down toward the head. If the pivot point is at the feet, the scaling will occur the way you want (appears to get shorter)

Without seeing your file, it's hard to know. [EDIT: Don't post the file - you would be breaking the EULA I'm sure]

Check your "Bounds" object and make sure the center point is at the feet rather than the head. If the center point is at the feet already, make sure your axis' are lined up correctly (+y points up.) It's possible the exporter is flipping your x/y/z coordinates automatically, but not flipping the bounds box.