You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using animated palette entries in an 8bpp mask for a 32bpp sprite should lead to those pixels being correctly animated, irrespective of the transparency/alpha of the 32bpp sprite.
Actual result
Fully opaque pixels in a 32bpp sprite with animated 8bpp palette entries animate correctly. Partially transparent pixels in a 32bpp sprite with animated 8bpp palette entry aren't correctly animated. eg using the following test sprites:
The problematic pixels mostly don't animate at all, but occasionally change. It seems that they are correctly animated when redraw is triggered for some other reason, eg. if the animated sprite is in a window then dragging that window around gives the expected animation while the window is in motion.
Steps to reproduce
Setup a test NewGRF with index entries, eg. the following, which replaces the diagonal bus view used as the company colour preview in the company window.
The actual fix is to not use transparent animated pixels in your sprites.
It partially "animates" because it uses the current animated colour when it is drawn, but those cannot be updated by the palette animator. There is no "unanimated" colour at those palette indices.
That is a special case that doesn't involve transparency. It's unrelated. When transparency is involved you are mixing (at least) two different colours together.
Version of OpenTTD
Latest nightly, Windows 10
Expected result
Using animated palette entries in an 8bpp mask for a 32bpp sprite should lead to those pixels being correctly animated, irrespective of the transparency/alpha of the 32bpp sprite.
Actual result
Fully opaque pixels in a 32bpp sprite with animated 8bpp palette entries animate correctly. Partially transparent pixels in a 32bpp sprite with animated 8bpp palette entry aren't correctly animated. eg using the following test sprites:
The problematic pixels mostly don't animate at all, but occasionally change. It seems that they are correctly animated when redraw is triggered for some other reason, eg. if the animated sprite is in a window then dragging that window around gives the expected animation while the window is in motion.
Steps to reproduce
32bpp sprite:
8bpp mask:
The text was updated successfully, but these errors were encountered: