• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

MDL Editing - Material for teamcolor ~Help needed.

Status
Not open for further replies.
Level 4
Joined
Oct 10, 2004
Messages
76
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.
 
Level 23
Joined
Mar 29, 2004
Messages
1,979
With geomerging, the material created for the new geoset is simply one that refers to the texture. However, you need something like this:
Code:
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.
 
Status
Not open for further replies.
Top