RGB to ETS2 Color Code Converter

rgb

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

17 thoughts on “RGB to ETS2 Color Code Converter

  1. Way to go, bud ๐Ÿ˜‰

  2. Credits to Laurent Gryson for the Calculation!

  3. You are welcome for the calculation ๐Ÿ˜‰

  4. LoneStar88

    I have no clue as to what this mod is for… can someone fill me in please

    1. 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 ๐Ÿ˜‰

    2. Eurotrucker

      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

    3. 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).

  5. LoneStar88

    Thank you sir for the explanation, I’ll have to give it a try.

  6. If you want it white john, just do it as (1.0000,1.0000,1.0000) ๐Ÿ˜‰

  7. 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.

  8. Just divide the regular RGB numbers with a number around 1024 to get the ETS2 codes

    1. 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)

      1. abasstreppas

        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.

        1. 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.

          1. 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.

  9. 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, …)

Leave a Reply to John Cancel reply

Your email address will not be published.