BAM sprites palette question
pantinor
Member Posts: 1
I was working with the frames and animations in the bam files which have alot of the character frames. These are mostly the BAMS in BG which begin with letter C (ie like CHFW2CA.BAM). The palettes on these are not the colors actually appearing in the game, and expect there is some conversion routine or formula which can change the color palette in various ways to reuse the same sprite but have different palette. Is this routine or formula documented anywhere on how to convert the frame colors to the actual game colors?
0
Comments
I want to know this too.
see also
Effect Opcode 7 (0x7) Colour: Set Character colours by Palette
I simply want to extract the actual game colored animations.
I wonder if anyone here could lists me some example steps using NI to achieve my goal.
Anyone please guides me through this. I just don't know what to do...
While you theoretically can export the BAMs for a particular animation and then repalette them to use the colors you want, there is almost no conceivable reason why you would actually want to do this, nor do I believe this is actually what you want to achieve. The niche cases where one would genuinely want to do this are so obscure I only know of one person to have ever done it (in this context), and that was Erephine (the god behind 1pp and Infinity Animations). While I'm probably one of the few modders still around that could step you through this process, it involves a handful of tools (some of which are quite buggy) and is a moderately involved process. So before I go to the trouble of typing up pages of step-by-step guide, what is the end result that you actually want to achieve by doing this? If it's just change the colors of your character (or a creature) in the game, then see the previous paragraph.
I used NI to skim through CRE files and found metal color index for Vhailor which is 129. Then I checked his palette color index in bam file and found that his #129 color index which is grey (90, 74, 57). It is indeed, should be his in game weapon color. But what to do next? Edit Bam and replace the Teal indexes one by one? Is that right? Please help me a little more.
I just want to extract Dak'kon and Vhailor animations with in game colors. I'm gonna use them in another game. So just be able to extract all of animation sequences in actual game color in BMP or PNG is my goal.
The 'lightest' teal entry is rgb(75, 255, 255) while the 'darkest' is rgb(0, 63, 63). If you give me the corresponding lightest and darkest palette entries in the color range you want to recolor the BAM to, I'll try to help with the math (if you want).
It is written in French but it is not that difficult to understand if you follow the pictures.
I'm not gonna replace color indexes one by one anymore, instead I'm using hue/saturation. What I have to do is simply try to adjust the colors as close as in game colors as possible.
Thanks so much for answering all my questions!