Hi,
In a few words, I’m working on a T3D Converter (see here for more informations).
I’ve almost finished the LightMap function (for every light, I calcul the lightmap coord.) and the next step is to store the lights parameters but I’ve a problem with the color.
First, take a look on this :
As you can see, I’ve selected a full red color. In the editor, ther’s no problem but when I export the map in .t3d fileformat, the red color is written likes this :
LightBrightness=255
LightHue=255
LightSaturation=127
And finally, my question is : How can I calcul the RGB colors with only the above informations ? I need to have the R color who on the picture is at 255 (FULL).