Unoptimal palette packing #1427
Replies: 4 comments 3 replies
-
The simple "greedy best-fit" algorithm from SuperFamiconv (also ported to Tilemap Studio) works for the 8pals.zip example. |
Beta Was this translation helpful? Give feedback.
-
Running with
One can see that there are exactly 8 of them with 4 colors; and further inspection shows that all the smaller proto-palettes are subsets of those 8. An early step of "merge subset proto-palettes into larger ones" would have sufficed, and in fact this is what superfamiconv does. The 9 palettes that rgbgfx ends up with are weird. 8 of them make sense, taken from the above list, but then there's an extra one:
|
Beta Was this translation helpful? Give feedback.
-
Section 2.3 of the paper lists "Simplifying Assumptions". The first one is "Rule 1. No tile is included in another one." RGBGFX currently violates this assumption, as seen above. We need a preprocessing step like superfamiconv has, merging proper subsets together, to meet this rule. We should also make sure all the other assumptions are being met. |
Beta Was this translation helpful? Give feedback.
-
Turns out that 0f1137c fixes at least this particular instance. |
Beta Was this translation helpful? Give feedback.
-
Here is a case where RGBGFX's palette packing is insufficient:
8pals.zip
I wonder if any interesting patterns can be gleaned from this.
Additionally, if someone else has any such examples, please submit them!
Beta Was this translation helpful? Give feedback.
All reactions