In my project I want users to be able to choose a team color. Their models should then be colored with their team color. I did this with the robot mesh that comes with Ogre by manually creating a second texture and material where the grey is colored red or blue. However I want the user to be able to choose any color with a color picker and manually creating every color for every model these seems incorrect.
I was going to texture all my models grey where I want a team color. Then at run time pick a color and change all the grey color in my texture to the selected color. Can Ogre do this?
I noticed it didn't work for me aswell when I tried to colour the robot, but it worked with other objects.
I believe it's because the robot material script got a program in it (which I don't understand at all).
However the next material script for the robot did actually work.