Game Development Community

Customizable colors on 3D model

by Michael Layfield · in Artist Corner · 05/20/2005 (4:38 pm) · 3 replies

I'm planning to make a short demo on TGE and one of the features I was thinking of putting is the ability to change a model's colors on three areas.

For example, I have a robot arm model and it has 3 possible color divisions: 1) Primary color, 2) Secondary color, and 3) Hand color. Players can then change the 3 divisions' colors by either clicking on a selection of colors or adjusting a slider just like that PS game Armored Core.

Now the problem is, I don't know what's the best way to approach this. My 3D modeler says that one way is to create the models in such a way that a group of vertices have a distinct shape and texture those groups individually. Then create a bunch of textures with various colors for the player to select.

Anyways, is there any other way to approach this?

#1
05/29/2005 (9:53 pm)
In warhammer 40 k :: dawn of war it is done via an extra texture in grayscale on the model, which tells the engine (or game, whatever, im no programmer), which areas are getting the hex-color chosen in the so called "army painter". these grayscale blending maps overlay the more bright areas with more intensive color, the darker ones with less, black with no color and white in full color. thats the principle behind, but i have no idea, if that can work inside the torque engine, too.

if someone has an idea, a code snippet or another kind of solution for such things, i would also be very grateful.
thx

ka


ps: otherwise we are planning to do in that way:
we create the model and texture, and with photoshops hue / saturiation we export many different skins, just altering the fraction-colors (for example, in an rts game). in the GUI the player can choose from, lets say 30 exported skins by selecting a color in a dropdown field (for example).
#2
05/30/2005 (7:41 am)
This was done several months back, if my memory serves me correctly. The person who did it did it with a racing game. I think he may have showcased it in a plan. I know its it not much, but at least you know its out there.
#3
06/01/2005 (10:22 am)
Here are two links that may help you.

Skin Modifier

Setting object skins from script