Author Topic: Problem with mainhall ani files  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Problem with mainhall ani files
A weird problem I ran into recently while working on a new mainhall. Take a look at the following to images (easier if you zoom in):

http://i27.tinypic.com/24vr5u9.png
http://i29.tinypic.com/rqwwu9.png

When you compare them, you can see how the button around the text and all areas covered by the ani file go darker when the highlight is activated, for unknown reason. The ani file is created from standard 256-color pcx files and everything looks just fine in single frames and in aniviewer, but when the file is activated ingame, the colors go wrong.

I can't recall encountering this problem when I worked with BtRL interface and I'm doing everything here the same way I did before. Any help regarding the matter is appreciated.

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Re: Problem with mainhall ani files
If they're not using the same palette (or sometimes even if they are) you may end up with colors being adjusted so they no longer match. You need to fix them by making sure you have a blank image with a palette with everything you need in it, then pasting in the images you want and saving. That way the image uses the same palette for the same colors for both, instead of recalculating for each.
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline ShadowGorrath

  • Not funny or clever
  • 211
Re: Problem with mainhall ani files
Is this for a mod? If so, what mod?

 

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Re: Problem with mainhall ani files
If they're not using the same palette (or sometimes even if they are) you may end up with colors being adjusted so they no longer match. You need to fix them by making sure you have a blank image with a palette with everything you need in it, then pasting in the images you want and saving. That way the image uses the same palette for the same colors for both, instead of recalculating for each.
Already done. The frames all use the same palette, and I've even tried to create the said palette in three different applications. Why it fails to work, I have no idea.

Is this for a mod? If so, what mod?
That would be telling. And I ain't going to :)

 

Offline Water

  • 210
Re: Problem with mainhall ani files
Did you palettize the image and then export part images, or export images and then palettize them?

 

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Re: Problem with mainhall ani files
The latter. Ani files are the only interface parts that still need 256-colors, the rest (excluding the masks) can be full color dds.

 

Offline Water

  • 210
Re: Problem with mainhall ani files
This is a longshot. The colour changes in game due a different gamma setting. Two colours that seems similar can end up shifted after FS gamma adjustment does it thing.
« Last Edit: June 28, 2008, 03:02:07 am by Water »

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Problem with mainhall ani files
This might be a long shot, too, but are you using -img2dds?
-C

 

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Re: Problem with mainhall ani files
This is a longshot. The colour changes in game due a different gamma setting. Two colours that seems similar can end up shifted after FS gamma adjustment does it thing.
Question is, why would the adjustement only apply to anis since the actual mainhall image looks exactly the same as it does on Photoshop?

This might be a long shot, too, but are you using -img2dds?
Nope, the problem persists even when I run the game without any flags.

 

Offline Water

  • 210
Re: Problem with mainhall ani files
Question is, why would the adjustement only apply to anis since the actual mainhall image looks exactly the same as it does on Photoshop?
I'm guessing the background is 16/24 bit dds vs 8bit for the ani?

 

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Re: Problem with mainhall ani files
Yep.

 

Offline Water

  • 210
Re: Problem with mainhall ani files
I guess that means trying the background as a pcx using the same palette as the ani.

 

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Re: Problem with mainhall ani files
Tried it. If the background image has it's own 256-color palette, there's still a noticeable color change with the anis. If the background images use the same palette as the anis, the problem dissappears but the whole thing looks just horrible with the few colors it has. To be honest, I'd rather live slight color change on a button than butcher the entire mainhall with banded gradients and other issues.

 
Re: Problem with mainhall ani files
did you make your ani with anibuilder in the tools folder of freespace ? I've noticed it sometimes change the palette when creating a ani file.
Make sure that in advanced settings, in "Action when palette does no match" you have ignore.
I don't know why but sometimes, even with a single image ani, it changes the palette.

 

Offline Water

  • 210
Re: Problem with mainhall ani files
Tried it. If the background image has it's own 256-color palette, there's still a noticeable color change with the anis. If the background images use the same palette as the anis, the problem dissappears but the whole thing looks just horrible with the few colors it has. To be honest, I'd rather live slight color change on a button than butcher the entire mainhall with banded gradients and other issues.
Another option may be instead of fixing the ani's, alter the background. All you need is to shift the colours on the background to match the ani's. That way you can keep the background at 24bit.

  

Offline Lt.Cannonfodder

  • 210
  • Digitalous Grunteous
Re: Problem with mainhall ani files
Make sure that in advanced settings, in "Action when palette does no match" you have ignore.
I don't know why but sometimes, even with a single image ani, it changes the palette.
Yea, I've done that.

Another option may be instead of fixing the ani's, alter the background. All you need is to shift the colours on the background to match the ani's. That way you can keep the background at 24bit.
That's what I may have to do. I'll hate it though.