Game Development Community

Setting the colour of a player (not skin)

by Jason Farmer · in Torque Game Engine · 02/15/2006 (4:29 am) · 4 replies

I'm doing some research on the next part of the development of my game.

Team colours.

I've been wondering the best way to go about it without using the current skin swapping mechanism.


It would be nice to be able to allow the player to choose their own colour from a colour slider (or 3) and let them choose a colour grayscale mask to apply.

The engine would then take the model's texture, and the mask, then recolour the masked area with the selected colour. The resulting texture would then be used for the model.

Each client would then have their own player texture, custom coloured by the settings selected at player creation time.

By having a mask, it means that special, model related colour schemes could be selected. Special tribal patterns, camoflage patterns or go-faster stripes could be chosen...

it'd look really nice.


There's one problem... I've no idea how to do this.

#1
02/15/2006 (6:36 am)
I know there is a resource that have covered this but it will take some time to find it good luck
#2
02/15/2006 (7:32 am)
Thanks Anthony,
Any ideas as to a starting point?
Do you know how old the resource is?

I did have a search for team colours (and team colors ) but no resource similar appeared..

I must admit that my Google-Fu is a tad lacking..

If anyone knows where to find this resource, I'd appreciate a pointer in the right direction.
#3
02/15/2006 (7:43 am)
It was hard to find but try this I am not sure if this was what I was the resource I was thinking about but it should work for what you want
#4
02/15/2006 (7:47 am)
Nice one Anthony,
This looks like it could be the starting point I need. Fairly recent too.

Thanks again