• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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