Adding new light colours to lightcolor.2da?
Dark_Ansem
Member Posts: 992
So, the inside of the 2da is like this:
RED GREEN BLUE LABEL TOOLSETRED TOOLSETGREEN TOOLSETBLUE 0 0.00 0.00 0.00 Black 0.00 0.00 0.00 1 0.60 0.60 0.60 DimWhite 0.33 0.33 0.33 2 1.20 1.20 1.20 White 0.66 0.66 0.66 3 2.00 2.00 2.00 BrightWhite 1.00 1.00 1.00how to understand these values in order for the chosen colour to display correctly? (especially considering there is NO black light option)? Is the different intensity used for distances?
0
Comments
And to my knowledge intensity also affects distance. Yes!
So if you set your intensity value in 3ds max from 300 to 500 as an example the more meters you affect with the light!
The first column is the index, between 0-31 (for a total of 32 available slots)
RED GREEN and BLUE set the light color, and accept values between 0.00 and 2.00, and also negative values, used to subtract a certain color from the final result. It means that if you want to obtain a stronger BLUE color you can add negative values to RED and GREEN, but don't overdo it, as negative light values can quickly generate unwanted artifacts and trash your area lighting altogether.
LABEL is unused by the game or toolset, it's just for human eyes.
TOOLSETRED, TOOLSETGREEN and TOOLSETBLUE set the color of the icon in the toolset. Valid values are between 0.00 and 1.00, and you cannot use negative values.
The matching between light color and toolset color is arbitrary, and must be manually ensured by entering the appropriate values. You could associate a red light value with a green icon in the toolset, if for some weird reason that is the desired result.
Make sure that the first entry (ID 0) is set to black, so that the default tile light is no light.
Also, take into account that environment.2da (and area files) reference tile lights by ID, so if you change the light values in lightcolor.2da you'll be affecting already existing areas
Example of a custom-defined lightcolor.2da:
2DA V2.0 RED GREEN BLUE LABEL TOOLSETRED TOOLSETGREEN TOOLSETBLUE 0 0.00 0.00 0.00 BLACK 0.00 0.00 0.00 1 0.14 0.14 0.14 GRAY_DARK 0.39 0.39 0.39 2 0.50 0.50 0.50 GRAY_BRIGHT 0.74 0.74 0.74 3 0.89 0.89 0.89 WHITE 1.00 1.00 1.00 4 0.13 0.36 0.42 TURQUOISE 0.00 0.70 0.86 5 0.07 0.18 0.21 TURQUOISE_DIM 0.00 0.35 0.43 6 0.32 0.12 0.41 PURPLE 0.59 0.00 0.86 7 0.16 0.06 0.20 PURPLE_DIM 0.29 0.00 0.43 8 0.39 0.23 0.10 ORANGE 0.86 0.39 0.00 9 0.20 0.12 0.05 ORANGE_DIM 0.43 0.20 0.00 10 0.33 0.41 0.12 LIME 0.63 0.86 0.00 11 0.17 0.21 0.06 LIME_DIM 0.31 0.43 0.00 12 0.10 0.23 0.39 AZURE 0.00 0.39 0.86 13 0.05 0.12 0.20 AZURE_DIM 0.00 0.20 0.43 14 0.41 0.13 0.35 FUCHSIA 0.86 0.00 0.66 15 0.21 0.06 0.17 FUCHSIA_DIM 0.43 0.00 0.33 16 0.41 0.35 0.13 GOLD 0.86 0.66 0.00 17 0.21 0.17 0.06 GOLD_DIM 0.43 0.33 0.00 18 0.12 0.37 0.08 GREEN 0.12 0.86 0.00 19 0.06 0.18 0.04 GREEN_DIM 0.06 0.43 0.00 20 0.09 0.07 0.36 BLUE 0.04 0.00 0.86 21 0.04 0.04 0.18 BLUE_DIM 0.02 0.00 0.43 22 0.39 0.10 0.21 CRIMSON 0.86 0.00 0.33 23 0.19 0.05 0.10 CRIMSON_DIM 0.43 0.00 0.17 24 0.43 0.43 0.14 YELLOW 0.86 0.86 0.00 25 0.21 0.21 0.07 YELLOW_DIM 0.43 0.43 0.00 26 0.12 0.41 0.33 AQUA 0.00 0.86 0.63 27 0.06 0.21 0.17 AQUA_DIM 0.00 0.43 0.31 28 0.19 0.09 0.38 VIOLET 0.27 0.00 0.86 29 0.09 0.05 0.19 VIOLET_DIM 0.14 0.00 0.43 30 0.36 0.09 0.07 RED 0.86 0.04 0.00 31 0.18 0.04 0.04 RED_DIM 0.43 0.02 0.00
Which gives the following result:
Second example, with the use of some negative values:
2DA V2.0 RED GREEN BLUE LABEL TOOLSETRED TOOLSETGREEN TOOLSETBLUE 0 0.00 0.00 0.00 BLACK 0.00 0.00 0.00 1 2.00 2.00 1.80 LIGHT_BRIGHT_YELLOW 1.00 1.00 0.90 2 1.90 1.75 0.50 YELLOW_BRIGHT 0.95 0.85 0.25 3 0.70 2.00 0.75 GREEN_BRIGHT 0.35 1.00 0.38 4 0.10 1.00 1.60 TURQUOISE_BRIGHT 0.05 0.50 0.80 5 0.80 0.50 2.00 VIOLET_BRIGHT 0.40 0.25 1.00 6 1.90 0.60 1.30 PINK_BRIGHT 0.95 0.30 0.65 7 2.00 0.45 0.50 RED_BRIGHT 1.00 0.22 0.25 8 0.60 0.60 0.60 GRAY_DARK 0.30 0.30 0.30 9 2.00 1.80 1.80 LIGHT_BRIGHT_RED 1.00 0.90 0.90 10 0.50 0.35 -0.40 YELLOW_DARK 0.35 0.27 0.00 11 -0.36 0.80 -0.24 GREEN_DARK 0.00 0.40 0.05 12 -0.40 0.35 0.60 TURQUOISE_DARK 0.00 0.18 0.30 13 0.15 -0.40 0.80 VIOLET_DARK 0.07 0.00 0.40 14 0.60 -0.40 0.40 PINK_DARK 0.30 0.00 0.20 15 0.60 -0.35 -0.30 RED_DARK 0.60 0.00 0.03 16 1.20 1.20 1.20 GRAY_BRIGHT 0.60 0.60 0.60 17 1.80 2.00 1.80 LIGHT_BRIGHT_GREEN 0.90 1.00 0.90 18 1.40 1.80 0.10 OLIVE_BRIGHT 0.70 0.90 0.05 19 0.40 1.70 1.90 AQUA_BRIGHT 0.20 0.85 0.85 20 0.30 0.60 2.00 BLUE_BRIGHT 0.15 0.30 1.00 21 1.40 0.40 2.00 PURPLE_BRIGHT 0.60 0.15 1.00 22 2.00 0.45 0.65 REDPINKISH_BRIGHT 1.00 0.22 0.33 23 2.00 1.00 0.60 ORANGE_BRIGHT 1.00 0.50 0.30 24 2.00 2.00 2.00 WHITE 1.00 1.00 1.00 25 1.80 1.80 2.00 LIGHT_BRIGHT_BLUE 0.90 0.90 1.00 26 0.30 0.50 -0.40 OLIVE_DARK 0.20 0.33 0.00 27 -0.40 0.50 0.60 AQUA_DARK 0.00 0.25 0.30 28 -0.40 0.20 1.70 BLUE_DARK 0.00 0.10 0.50 29 0.45 -0.40 0.65 PURPLE_DARK 0.20 0.00 0.30 30 0.70 -0.50 0.25 REDPINKISH_DARK 0.35 0.00 0.12 31 0.60 0.30 -0.40 ORANGE_DARK 0.40 0.15 0.00