Game Development Community

Changing Object Color dynamically

by Jeff Paxson · in Torque Game Engine · 04/12/2006 (9:16 am) · 4 replies

Hello All,

I have looked all over but have been unable to find previous threads on this subject. What I want to be able to do is basically change the color dynamically of a loaded object, be it a vehicle, static object, .DIF building or interior, or animated one. The effect I am going for is something like what you see if WoW if your character gets poisoned he turns all green for instance. Has anyone tried this and maybe give me a shove in the right direction?

Thanks!

#1
04/12/2006 (9:49 am)
There is a resource on the subject, use that there search bar and good luck
#2
04/12/2006 (1:11 pm)
@Anthony Use them there eyes and read what i posted. I searched for several hours. If you can't or just won't be helpful then begone. I saw the skin modifier thing if that is what you are talking about. But surely changing so basic a rendering property as the current color being applied to an object doesn't require all of that.

Anyone else actually done this, or if resources exist, could you maybe post a link or something? Thanks in advance for any help.
#3
04/12/2006 (1:21 pm)
I know this can be done with TLK. You can change the brightness of the RGB values of the light on a particular object, so if you increase the red brightness, the character will render with a brighter red tone.

I use this in my game to indicate when an object is selected by the player. I increase all three values, which just essentially makes the object appear bright.

I don't know how to do that without TLK, though. If you have, or get, TLK, then just respond here or e-mail me and I'll point you in the right direction.
#4
04/12/2006 (2:26 pm)
@Rubes

I think I will take a deeper look at TLK. Thanks a lot.