Game Development Community

How to make an on-the-fly RGB modifier for model textures?

by Michael Layfield · in Torque Game Engine · 01/06/2006 (5:03 pm) · 1 replies

Hi everyone,

We're trying to make a short demo which should feature an RGB modifier, giving players the ability to modify the model's color on at least 2 division/sections on the model's surface (Primary color and Secondary color). First off, we plan to use this http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2990 to give our test model two sections, the first texture layer will be the primary color and the second texture layer (the one with the alpha) will be the secondary color. Then 2 RGB sliders would be programmed, one for each texture layer.

Now the thing is, my programmer doesn't know how to create an RGB modifier for the textures, can someone help us out? Thanks in advance.

#1
01/08/2006 (1:23 am)
Just have to go to the TS code and add a constant multiplier in the material setup code. Or you can write color to a texture and apply that. There are lots of solutions.