Object Color in GLSL Mode

Greetings all,

After a quick google search, I discovered that you can change an objects color within the game by assigning a new value to said objects color property.

owner.color = (1, 0, 0, 1);

This appears to work great in both Texture Face and MultiTexture modes, but not in GLSL mode. Is there a reason for this, and if so how can I work around it? Are there other/better ways of changing an objects color without using IPO curves?

you can assign a node material which mixes vertex colors to its regular color and then set these vertex colors.

A couple of things to try:

  • Make sure ob color is on for the material
  • Keyframe one frame of object color. There is a bug were ob color only works if it has an IPO. Now, you don’t actually need to use the IPO.

Thanks Moguri, I hadn’t figured this out either. Setting Object Color got it to work.
This also solves the same problem in a few other games of mine.

That worked! Thank you very much Moguri. =)