Teamcolor

From MegaGlest
Revision as of 00:20, 1 April 2011 by Hofmic (talk) (See also)
Jump to: navigation, search
Example of a unit with red teamcolor.

Teamcolor is a special area in models, such as a building's flag or a warrior's shield where the color is that players's unique player color. This is the color that appears on the minimap as well as is used to ensure units of different players can be recognized as so. When creating mods, all units should have teamcolor at least somewhere, and it should be noticeable to ensure that players can distinguish their units from an ally's or enemies units. The teamcolor in Glest is the alpha-channel (transparency) of the textures.

Toggling between transparency and teamcolor

Toggling between the object having transparency or teamcolor is done by selecting single sided or double sided rendering in blender. This "double-sided" attribute also occurs in the exported XML.

Steps

  1. In object mode select your mesh.
  2. In the Buttons Window, switch to the Editing screen (F9)
  3. Under Mesh, switch between double-sided (teamcolor) and single-sided (transparency)

Teamcolor blender.png

Hint: By this you can select a different transparency behavior for every blender mesh object. Thus you can have a cape that uses teamcolor and a sword that uses transparency by making them different objects.

Activating teamcolor

In the model's texture, transparency (which will require that you have the texture saved in a format which supports transparency, either TGA or PNG) will be replaced as teamcolor.

Teamcolor.png

See also