Log in

View Full Version : Model Naming Convention



Bwian
04-14-2007, 11:58
Before I start experimenting, I thought I would check and see if this is already common knowledge. Searches haven't turned up anything...so here goes!

The model parts and their names have been causing me some confusion. More so, when I look at the samples Caliban put out for us to look at!

What parts are ESSENTIAL, and how does the game determine which parts will display on any given model in a unit.

Taking the 'peasants_lod0' as my base:

peasant_body_01, 02 and 03:
Actual polygons are all the same ( do they HAVE to be? ) so it will just be the UV mapping onto a different part of the texture to give a new appearance to the unit. Does the game pick one at random ?

arms_01, 02, 03 and 04
Since there are different numbers of parts for each 'chunk' I can assume they are mix and match. Again...does there HAVE to be 4 of these, 3 bodies...and are these values linked to something in model_db.

The model has 5 heads.... no helmet. When I compare this with, say, the Scot noble, the helmet is named head_helmet_short_hair_01, 02 with some variations to the central portion. Does a head just have to start head_ and end with _01, _02 etc ? That would make sense. The middle portion allows the modeller to differentiate. The start block tells the game what part of the whole thing it is, and the final part gives it a number of variations to choose from.

Lastly...the weapons. The peasant has 3 different types of pitchfork... Are their weapons randomly variable... or do they have some measure of control over which one is used?

Going to start experimenting....but I wondered if there was any pointers to help me before I start :yes:

Casuir
04-14-2007, 14:28
What parts are ESSENTIAL, and how does the game determine which parts will display on any given model in a unit.

Not sure but theres models missing one or more of the main body parts, (some aztecs have no arms or legs), could be the engine just uses whatevers in the file.

Actual polygons are all the same ( do they HAVE to be? )
Nope


Does the game pick one at random ?
It would appear so, there doesnt seem to be anyway of controlling it


Since there are different numbers of parts for each 'chunk' I can assume they are mix and match. Again...does there HAVE to be 4 of these, 3 bodies...and are these values linked to something in model_db.
No on both counts


The model has 5 heads.... no helmet. When I compare this with, say, the Scot noble, the helmet is named head_helmet_short_hair_01, 02 with some variations to the central portion. Does a head just have to start head_ and end with _01, _02 etc ? That would make sense. The middle portion allows the modeller to differentiate. The start block tells the game what part of the whole thing it is, and the final part gives it a number of variations to choose from.



Each of these attachment types can have multiple variations. There is no limit on variations for any of the meshes. They are simply marked as thier mesh type (attachment, attachment1, head, body etc etc) and then the individual variation meshes are named with a sequential numbering. Head01 head02 head03 head04, pouch01, pouch02, pouch03 etc. The engine then knows to choose one of each variation by its numbering.

Not sure how grumpys exporter handles the name but the actual numbering doesnt seem to matter, berdiche_axemen for example has head_01, 12 ,07 and 08.


Lastly...the weapons. The peasant has 3 different types of pitchfork... Are their weapons randomly variable... or do they have some measure of control over which one is used?
All the mixing and matching seems to be random

Bwian
04-14-2007, 15:30
OK...seems pretty much as I thought... which is a relief!

I have begun modifying my Tomb Kings basic warrior to show a few variations and will attempt to put it in game as a test piece. I will make a few head-dress variants and some alterations in the jewellery and ornamentation. I might make a skull with some bits missing etc.

Then I will try and assemble it, rig it, and get it in game.....

fingers crossed!

GrumpyOldMan
04-15-2007, 00:47
Hi Bwian and Casuir

Casuir did a pretty good job of replying and there's not much more I can add.

As far as compulsory, the mesh needs at least one group to hold body details (the Cas I'm converting for m2tw usually only have one group - Body) and one primary weapon.

As long as your class (ie Head, Body, shield0, etc) is correct and consistent, you can call your group Myrtle01 - 05 for all the difference it makes to the engine.

As to control of how many pitchforks are depicted as to how many knives on sticks, there are no controls in the mesh or the text files to control this, BUT, thinking outside the square if you have three mesh groups of pitchforks and only one of a knife on a stick, then the regiment will be shown with roughly three times as many pitchforks as knives on sticks :beam:

Cheers

GrumpyOldMan

Bwian
04-15-2007, 10:38
Ahh..OK .... so only the first part of the name is important. Anything called 'head_xxxxxxxxxxxx' will get randomly chosen for the units head, and so on. Body, legs, arms and hands.

Choices will be evenly spread between the number of options given, so if I want a particular 'trait' in a model part...I can 'spoof' it by putting a multiple copy of that version in, and it will increase the chance of any given soldier having that part. Makes sense!!

Now...time to stop theorising, and get DOING :2thumbsup:

Herkus
04-15-2007, 11:48
@Bwian
Out of curiosity, which file format are you going to use for exporting your Tomb King's warrior meshes from Max to Milkshape - 3ds, fbx, mk3d ?

Bwian
04-15-2007, 17:55
First try will be 3DS. Then I have a couple of other options! FBX didn't seem to work for me at all ( Max 7 ) when I tried to get it into Max from Milkshape. Will try the reverse if 3DS doesn't work. Since I am only really after teh geometry, and will assign the verts to bones in MS3D, I am not too worried.

I would MUCH prefer to be importing the bones and weightings as well though... I have only really used MS3D as a 'cnverting engine' for other game mods I worked on. It was worth the money for that... but it lacks the ability of Max with envelopes etc. Now we have proper vertex weighting, Max would be a big benefit.