HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding teamcolor to models with MDL

12-03-2003, 07:54 AM#1
bISMARCK102
could I edit the alpha's through notepad if i converted it to MDL So I could add face paint to the archer that would be the same color as the team using it.
12-03-2003, 05:12 PM#2
nicoli_s
you can do that by editing the alpha channel to use team color
12-04-2003, 06:25 PM#3
bISMARCK102
The alpha channel? Do you have a link explaining how to? Is it in the mdl or do I do it in an image editor?
12-04-2003, 10:07 PM#4
RightField
You do that in an Image Editor, search for some tutorials, there are plentys. But it depends on what part you edit since some models have some parts which use transparecy and others which use teamcolor.
12-06-2003, 09:41 AM#5
ProFeT
yes u can add team color through mdl editing.

1°) pick out the line (bold line) what refers to TeamColor texture and note its Texture ID.
Quote:
Textures 8 {
Bitmap {
Image "units\NightElf\DruidOfTheClaw\Druidoftheclaw2.blp",
}
Bitmap {
Image "",
ReplaceableId 1,

}
Bitmap {
Image "units\NightElf\DruidOfTheClaw\Bear.blp",
}
...

here Texture ID is 1 (first texture has ID0 )

2°) now, search for the Material ID, used by the Geoset u want be teamcolorized ( :ggani: )

example:
Quote:
...

Anim {
MinimumExtent { 3.40282e+038, 3.40282e+038, 3.40282e+038 },
MaximumExtent { -3.40282e+038, -3.40282e+038, -3.40282e+038 },
}
Anim {
MinimumExtent { 3.40282e+038, 3.40282e+038, 3.40282e+038 },
MaximumExtent { -3.40282e+038, -3.40282e+038, -3.40282e+038 },
}
MaterialID 1,
SelectionGroup 0,
}

3°) Go to Material part of MDL (under textures part, at start of MDL), and find Material with the ID of geoset, here is ID1

Add a layer in first position who refers to the teamcolor texture ID

Example:
Quote:
Materials 8 {
Material {
Layer {
FilterMode Transparent,
TwoSided,
static TextureID 0,
}
}
Material {
Layer {
FilterMode None,
Unshaded,
TwoSided,
static TextureID 1,

}
Layer {
FilterMode Blend,
Unshaded,
static TextureID 0,
}

}
...
note: the material in red is the entire material with ID1

[COLOUR=red]DONT FORGET PARENTHESIS ==> } [/COLOUR]
Now save, your MDL and comiple it to a MDX, it s done :)


EDIT: u must keep the making up of the mdl, with TAB