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 Responses to RGB to ETS2 Color Code Converter

  1. Pasilius says:

    Way to go, bud πŸ˜‰

  2. MaxLowe says:

    Credits to Laurent Gryson for the Calculation!

  3. Sheindo says:

    You are welcome for the calculation πŸ˜‰

  4. LoneStar88 says:

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

    • MaxLowe says:

      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 πŸ˜‰

    • Eurotrucker says:

      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

    • anon says:

      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 says:

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

  6. MaxLowe says:

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

  7. John says:

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

  8. BartvHam says:

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

    • Goro says:

      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)

      • abasstreppas says:

        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.

        • Goro says:

          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.

          • BartvHam says:

            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. Sheindo says:

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

Sponsored links

Leave a Reply

Your email address will not be published.
Before commenting read

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


Popular mods