Color converter to SCS stopped working
Color converter to SCS stopped working
Hello,
we, who do skins, or simply need SCS colour coordinates - probably all know this site - https://www.dodero.eu/scs/color_converter/, which recalculates RGB numbers to SCS color code. But suddenly it stopped working. According to the info, there are some troubles with the form, which can be viewed by third person (really important in RGB codes, lol ). All web browsers I tried do that. Confirming sending the data viewable by third person resets the form, so you can't reach the colour coordinates you need. Can I somehow work around the problem? Or does anyone have contact to site admin?
Thanks.
we, who do skins, or simply need SCS colour coordinates - probably all know this site - https://www.dodero.eu/scs/color_converter/, which recalculates RGB numbers to SCS color code. But suddenly it stopped working. According to the info, there are some troubles with the form, which can be viewed by third person (really important in RGB codes, lol ). All web browsers I tried do that. Confirming sending the data viewable by third person resets the form, so you can't reach the colour coordinates you need. Can I somehow work around the problem? Or does anyone have contact to site admin?
Thanks.
- bobgrey1997
- Posts: 3618
- Joined: 30 Nov 2015 02:13
- Location: Minnesota, Iowa, Dekotas, and Nebraska
- Contact:
Re: Color converter to SCS stopped working
I've never heard of needing to convert color hex codes or RGB values to anything... I used to make skins, and never had to use ANY conversion tool.
- xXCARL1992Xx
- Posts: 16461
- Joined: 17 Aug 2016 12:18
- Contact:
Re: Color converter to SCS stopped working
looks like the page is done for, i think mod studio 2 has such a converter ? a little stand alone program would be better
and regarding converter, it is needed if you want to almost 1:1 replicate the color, SCS doesnt use RGB for their color, they use the linear color space and red in RGB wont be the same red in ETS and ATS
and regarding converter, it is needed if you want to almost 1:1 replicate the color, SCS doesnt use RGB for their color, they use the linear color space and red in RGB wont be the same red in ETS and ATS
| !!!NO SUPPORT OR REQUESTS OF ANY SORT VIA PM!!! | Screenshot Thread | Steam Workshop | World of Trucks Profil |
[ external image ]
[ external image ]
Re: Color converter to SCS stopped working
Well, to set colours for AI traffic I used this website, allowed me to set realistic colours per vehicle. Now I need some other way to set them. :-/
- Drive Safely
- Posts: 2912
- Joined: 20 Jun 2015 06:17
- Contact:
Re: Color converter to SCS stopped working
@Dejf94
I feared this would happen so luckily I had my own conversion script saved. Here is a new color converter you can download then open in your browser:
HTML file: https://drive.google.com/file/d/1NOXUrs ... sp=sharing
It doesn't have an online website but you can save it in your File Explorer and keep it working forever. Doesn't need any servers to run since it's fully client-side unlike Dodero's converter.
I kept the user interface familiar because if it ain't broke don't fix it. There is also a color picker that for some browsers will let you input RGB or HSL codes as well.
Here is a preview:
[ external image ]
I feared this would happen so luckily I had my own conversion script saved. Here is a new color converter you can download then open in your browser:
HTML file: https://drive.google.com/file/d/1NOXUrs ... sp=sharing
It doesn't have an online website but you can save it in your File Explorer and keep it working forever. Doesn't need any servers to run since it's fully client-side unlike Dodero's converter.
I kept the user interface familiar because if it ain't broke don't fix it. There is also a color picker that for some browsers will let you input RGB or HSL codes as well.
Here is a preview:
[ external image ]
Re: Color converter to SCS stopped working
OMG that is amazing! Thank you so much!
- Drive Safely
- Posts: 2912
- Joined: 20 Jun 2015 06:17
- Contact:
-
- Posts: 490
- Joined: 30 May 2018 14:57
Re: Color converter to SCS stopped working
Is there a way to do it in reverse? For example, reading the color code out of a paint def .sii, plugging it into a converter and getting a HEX code out of it that can be used in the in-game color picker? (Basically for situations where I want to use a stock color code as a base for one of the decal skins, like the griffin decals on a Scania or the lion on a MAN.)Drive Safely wrote: ↑22 Apr 2021 03:20 @Dejf94
I feared this would happen so luckily I had my own conversion script saved. Here is a new color converter you can download then open in your browser:
HTML file: https://drive.google.com/file/d/1NOXUrs ... sp=sharing
It doesn't have an online website but you can save it in your File Explorer and keep it working forever. Doesn't need any servers to run since it's fully client-side unlike Dodero's converter.
I kept the user interface familiar because if it ain't broke don't fix it. There is also a color picker that for some browsers will let you input RGB or HSL codes as well.
Here is a preview:
[ external image ]
- Drive Safely
- Posts: 2912
- Joined: 20 Jun 2015 06:17
- Contact:
Re: Color converter to SCS stopped working
@Winchester1979 - I'm not sure how to make the algorithm in reverse
- Carsmaniac
- Posts: 200
- Joined: 20 May 2019 01:13
- Location: Sydney, Australia
- Contact:
Re: Color converter to SCS stopped working
Based on the script in that webpage, the conversion algorithm is dividing each value (red, green and blue separately) by 255, then squaring it:
To reverse the conversion, you'd need to take the square root of an SCS colour number and multiply it by 255:
You lose some accuracy due to rounding the SCS numbers to 4 decimal places, but a quick test in the browser console shows that you do get the correct number back.
Code: Select all
(rgbArray[0]/255) ** 2
Code: Select all
Math.sqrt(scsArray[0]) * 255
Who is online
Users browsing this forum: No registered users and 5 guests