-
Notifications
You must be signed in to change notification settings - Fork 7
ImportProcessors
Christian Haas edited this page Sep 4, 2018
·
2 revisions
This page describes how various media files are imported and matched to resource formats.
The engine uses bitmapped images with a palette of 256 colors. While cutscenes can use palettes on their own, in-game graphics all share the same palette. This palette is stored in exported images.
When importing images, the following rules apply:
- If the imported image is a paletted image AND the palette RGB values match those of the game's palette, only then the pixel indices are taken literally for import.
- In all other cases (palette doesn't match, or images with higher color resolution), then the color of each pixel will be matched to the closest fitting color of the game's palette, except for the animated palette entries. Colors with an alpha value of 0 will be taken for the transparent index in this case.
This means, in case you want to stay pixel-perfect and/or you want to make use of palette animation, then you need to re-use the exact palette as the game uses. Otherwise, a near-matching algorithm is used by the editor.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.