Convert color codes from RGB to the code used in ETS2 def files.
Authors: MaxLowe
Credits to Laurent C Gryson for the calculation
DOWNLOAD 190 KB
Convert color codes from RGB to the code used in ETS2 def files.
Authors: MaxLowe
Credits to Laurent C Gryson for the calculation
DOWNLOAD 190 KB
Way to go, bud ๐
Credits to Laurent Gryson for the Calculation!
You are welcome for the calculation ๐
I have no clue as to what this mod is for… can someone fill me in please
It isn’t a mod as such, when you are making a skin, you can set the colour of wing mirrors & door handles etc, and it converts the RGB values to the values used by ETS2 to colour them ๐
Its for when you make skins, and you want the correct base_color for the .sii file ๐ So for example your truck is red, but you have the wrong base_Color then mirrors, handles etc. will be black or in whatever base_color is
ETS2 uses floating point 0-1 notation for colours rather than the normal 0-255 range, so this tool converts between the two.
You commonly use colour codes in custom paintjobs (to tell the game what colour to paint the mirrors, doorhandles etc) and in the truck showroom definitions (which colour the truck should be by default).
Thank you sir for the explanation, I’ll have to give it a try.
Personally, it doesn’t work for me…
http://farm6.staticflickr.com/5543/9384802869_e20d579cd9_o.png
If you want it white john, just do it as (1.0000,1.0000,1.0000) ๐
Still a no for me mate, they are too dark still. Must be the way the light is received on mirrors and visors and door handles. ###### SCS.
Just divide the regular RGB numbers with a number around 1024 to get the ETS2 codes
Nope. Divide by 255
R = 109
G = 204
B = 25
R = 109 / 255;
G = 204 / 255;
B = 25 / 255;
That give you:
(0.4275, 0.8, 0.098)
That is actually wrong ๐ SCS uses the square-method (109*109)/(255*255)=0.1827 and so on. I guess that’s what this mod do.
No, in truck skins files(.sii), my method is 100% OK.
In other files, i don’t know.
SCS use in ETS2 several different color coding method.
Well, in my skins it does not. You also need to know that the color of the .dds file has the right shade of white.
Goro, your calculation is based on XYZ, however, SCS uses square values for the base color in the DEF file (it usually impact mirrors, sunshield, wheels, …)