[Stations] Animated color is different when MASK file is used

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
Quast65
Tycoon
Tycoon
Posts: 1757
Joined: 09 Oct 2011 13:51
Location: The Netherlands

[Stations] Animated color is different when MASK file is used

Post by Quast65 »

Hi all!

When I code a station with 32bpp graphics and use a MASK file to add an animated color, the color is different than the "regular" animated color when I code the same station with just 8bpp graphics:
Example550.png
Example550.png (41.14 KiB) Viewed 148 times
It's a lot lighter…

I think it has something to do with the color I use in the 32bpp graphic where the animated colors should be.
What color should I use in the 32bpp graphic to have no changes in the look of the animated color?
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.

User avatar
Andrew350
Director
Director
Posts: 593
Joined: 19 Dec 2011 07:54
Location: Washington State, USA
Contact:

Re: [Stations] Animated color is different when MASK file is used

Post by Andrew350 »

I've found using a mid-range grey color, something like index 202 in the DOS palette for example, seems to produce good results, though I've never done a side-by-side comparison to see if it's exactly the same. You may have to adjust it a bit, just remember it's mostly the brightness which affects the result of masked colors, so mid-greys are usually a solid choice for a neutral result, but depends what you're looking to achieve :)

User avatar
Quast65
Tycoon
Tycoon
Posts: 1757
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: [Stations] Animated color is different when MASK file is used

Post by Quast65 »

Andrew350 wrote:
10 Oct 2020 14:12
I've found using a mid-range grey color, something like index 202 in the DOS palette for example, seems to produce good results,
Cheers mate!
For me, this one made the colors look close enough to the original:
MASK_UnderlayColor.png
MASK_UnderlayColor.png (335 Bytes) Viewed 81 times
(For future reference)
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests