HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Team color [Solved]

06-18-2003, 04:29 PM#1
Targash
If I have a modell and i want a part of that modell to have team color how do i go about doing that. If the model is one geoset do i have to split it up in two or something like that.
06-19-2003, 05:26 PM#2
exN
From what I have experienced so far, you need to have at least two materials (so two Geosets as well) if you want to have TC and transparency for example. You may in the same way, edit a mdl to use two, or more, different blp ( bitmaps ). I've figured how to do this while modelling trees for CoTN. This is rather easy.

Enough talking, have a look!


original mdl created with KMK's script
as you can see KMK script create one material/bitmap per model

-----------------------------------------------------------
// MDLFile version Jun 6 2002 04:58:04
// Exported on Mon Jun 02 21:07:12 2003
Version {
FormatVersion 800,
}
Model "arbre" {
NumGeosets 2,
NumGeosetAnims 2,
NumBones 1,
BlendTime 150,
MinimumExtent { -312.712, 365.303, -40.3883 },
MaximumExtent { -118.948, 607.521, 178.262 },
}
Sequences 2 {
Anim "Stand" {
Interval { 43333, 53300 },
MinimumExtent { -312.712, 365.303, -40.3883 },
MaximumExtent { -118.948, 607.521, 178.262 },
BoundsRadius 655.039,
}
Anim "Birth" {
Interval { 60433, 62833 },
NonLooping,
MinimumExtent { -312.712, 365.303, -40.3883 },
MaximumExtent { -118.948, 607.521, 178.262 },
BoundsRadius 655.039,
}
}
Textures 1 {
Bitmap {
Image "Textures\BarrensTree01.blp",
WrapWidth,
WrapHeight,
}
}
Materials 1 {
Material {
Layer {
FilterMode Transparent,
TwoSided,
static TextureID 0,
}
}
}

[...]
-------------------------------------------------


basically, all you have to do is spliting the material and the bitmap as follow. Also, first link the bitmap and the materials through the TextureID instruction and end by linking the materials and the geoset through MaterialID instruction ( at the bottom of each Geoset section, see below )

-----------------------------------------------------

// MDLFile version Jun 6 2002 04:58:04
// Exported on Mon Jun 02 21:18:16 2003
Version {
FormatVersion 800,
}
Model "arbre2" {
NumGeosets 2,
NumGeosetAnims 2,
NumBones 1,
BlendTime 150,
MinimumExtent { -60.693, -299.01, -9.27239 },
MaximumExtent { 181.414, -46.2876, 209.955 },
}
Sequences 2 {
Anim "Stand" {
Interval { 43333, 53300 },
MinimumExtent { -60.693, -299.01, -9.27239 },
MaximumExtent { 181.414, -46.2876, 209.955 },
BoundsRadius 340.711,
}
Anim "Birth" {
Interval { 60433, 62833 },
NonLooping,
MinimumExtent { -60.693, -299.01, -9.27239 },
MaximumExtent { 181.414, -46.2876, 209.955 },
BoundsRadius 340.711,
}
}
Textures 2 {
Bitmap {
Image "Textures\BarrensTreeLeaves05_copy.blp",
}
Bitmap {
Image "Textures\BarrensTree01.blp",
WrapWidth,
WrapHeight,
}
}
Materials 2 {
Material {
Layer {
FilterMode Transparent,
TwoSided,
static TextureID 0,
}
}
Material {
Layer {
FilterMode Transparent,
static TextureID 1,
}
}
}
Geoset {
Vertices 155 {
[...]
MaterialID 0,
SelectionGroup 0,
}
Geoset {
Vertices 181 {
[...]
MaterialID 1,
SelectionGroup 0,
}
[...]

------------------------------------------------------

et voilà ! you're done!!!
Have fun! :ggani:
06-19-2003, 06:47 PM#3
Ari
I've never tried to make a model with teamcolor, so i'm not speaking as an expert. But I'm pretty sure that most blizzard models use a single material with 2 layers, not 2 materials with one layer each. This simplifies geoset use as well.
06-19-2003, 10:20 PM#4
Guest
people should know that there is a easy option: use blend. This is most viable option (heDID say he only have one geoset btw =P)


a example:


Material {
Layer {
FilterMode None, Unshaded,
static TextureID 1, <=== TC
}
Layer {
FilterMode Blend,
static TextureID 0, <===Skin
}
}

of course, appoint your geoset to this materialid. If you ahve only one materialid and one geoset, then its always 0


unless you strive for perfection (means you want the unit to have seperate fields of tc divided by geosets just to make it finished when its a placable model (like placing the model in we=shows half transparent and half tc). But this is general bullshit as most blizzard models uses this method for the entire base geoset
06-20-2003, 06:53 AM#5
Targash
K. Thx for the replies. Ill try Cookies way first.