Game Development Community

Fog and Canvas color pickers - LOGGED

by Gerry "Hermetic" Smith · in Torque 3D Professional · 03/02/2010 (10:05 am) · 2 replies

Not really a bug but rather an inconsistency. I was playing around with the fogColor values in the editor and at one point decided to set it to the same color as the canvasClearColor, but putting in the same values from the canvas color to the fog color results in a very different color. I then noticed that the values in the color picker for the canvasClearColor go from 0-255, while the values in the fogColor color picker go from 0-1.

From the "Deathball Desert.mis" file:
fogColor = "0.690196 0.831373 0.890196 1";
canvasClearColor = "98 131 166 255";


I know I can just divide the 0-255 numbers by 255 to convert them to the 0-1 equivalents but some frustration can be avoided for those encountering this the first time by making all the color pickers use the same format right? Or is there a good reason for having it like it is now?

#1
05/24/2010 (11:29 am)
This is bugging the hell out of me. This also is not the only place with inconsistent data entry types.
#2
05/28/2010 (1:44 pm)
bug logged Key: TQA-163