Page 1 of 1

Train colors different when set via a script

Posted: Tue May 14, 2019 7:56 pm
by _Attila_
locos.png
locos.png (575.24 KiB) Viewed 797 times

Both of the above locomotives are black {0,0,0}, but the top one was set via script and the other via GUI.
The top one is much nicer, not so washed out, but that cannot be achieved via the GUI.

locos2.png
locos2.png (273.93 KiB) Viewed 797 times

Both of the above locomotives are white {255,255,255}. Top via script.
Now the bottom one is better and this cannot be achieved via script.

Could we please have the colors match and go from top(1) to bottom(2) - proper black to proper white.

Re: Train colors different when set via a script

Posted: Tue May 14, 2019 8:06 pm
by posila
Use {0, 0, 0, 127} for black or {255, 255, 255, 127} for white to match colors set from train GUI. Colors set in the GUI have implicit alpha 0.5