Warcraft III resources & community, 2003–2006 · archived

MDL Editing - Material for teamcolor ~Help needed.

3 posts
#1

MDL Editing - Material for teamcolor ~Help needed.

Yeah, so I´m doing a little geo-merging, I´m adding a hood from the rifleman to the grunt.
Everything goes smooth until I stumble across this problem; I don´t know what to write when a material is teamcolor, thus making the alpha on the texture erase the hood instead of making it teamcolor. (See pic)
This should be a really basic problem, so I´d really appreciate any help given.
Ps. I hope I explained everything right^^ Just ask if the problem is unclear.
#2
With geomerging, the material created for the new geoset is simply one that refers to the texture. However, you need something like this:
Material {
	Layer {
		FilterMode None,
		Unshaded,
		static TextureID X,
	}
	Layer {
		FilterMode Blend,
		TwoSided,
		static TextureID Y,
	}
}

Where texture X is a ReplaceableId 1 texture, almost all models have one built in, and texture Y is the rifleman skin. That should sort you out.
#3
Ooh, so that´s how it´s done =) Thank you very much!